WPADButtonDown

Syntax

#include <revolution/wpad.h>

#define WPADButtonDown( buttonLast, button )   \
((u16) (((buttonLast) ^ (button)) & (button)))

Arguments

buttonLast The previous button status.
button The most recent button status.

Return Values

The bitwise OR of pad button bits for standard controller buttons that have been pressed.

Description

This function verifies whether button(s) are being pressed.

See Also

None.

Revision History

2005/08/01 Initial version.


CONFIDENTIAL