PADButtonDown

Syntax

#include <revolution/pad.h>

#define PADButtonDown(buttonLast, button)   \
    (((buttonLast) ^ (button)) & (button))

Arguments

buttonLast Previous button status returned in PADStatus by using PADRead.
button Current button status returned in PADStatus by using PADRead.

Return Values

Logical OR of the pad button bits for the buttons that have just been pressed.

Description

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

See Also

PADButtonUp, PADInit, PADRead, PADStatus

Revision History

2006/03/01 Initial version.


CONFIDENTIAL