#include <revolution/pad.h>
#define PADButtonDown(buttonLast, button) \
(((buttonLast) ^ (button)) & (button))
| buttonLast | Previous button status returned in PADStatus by using PADRead. |
|---|---|
| button | Current button status returned in PADStatus by using PADRead. |
Logical OR of the pad button bits for the buttons that have just been pressed.
This function verifies whether button(s) are being pressed.
PADButtonUp, PADInit, PADRead, PADStatus
2006/03/01 Initial version.
CONFIDENTIAL