WPADButtonDown

C Specification

#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 logical sum of pad button bits for standard controller buttons being pressed.

Description

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

See Also

WPAD Functions

Revision History

2005/08/01 Initial version.


CONFIDENTIAL