C4EV3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros
ButtonState constants

Macros

#define BTNSTATE_PRESSED_EV   0x01
 
#define BTNSTATE_SHORT_RELEASED_EV   0x02
 
#define BTNSTATE_LONG_PRESSED_EV   0x04
 
#define BTNSTATE_LONG_RELEASED_EV   0x08
 
#define BTNSTATE_PRESSED_STATE   0x80
 
#define BTNSTATE_NONE   0x10
 

Detailed Description

Constants for use with the ButtonState() function. The _EV values can be combined together using a bitwise OR operation.

See Also
ButtonState()

Macro Definition Documentation

#define BTNSTATE_LONG_PRESSED_EV   0x04

Button is in the long pressed state.

#define BTNSTATE_LONG_RELEASED_EV   0x08

Button is in the long released state.

#define BTNSTATE_NONE   0x10

The default button state.

#define BTNSTATE_PRESSED_EV   0x01

Button is in the pressed state.

#define BTNSTATE_PRESSED_STATE   0x80

A bitmask for the button pressed state

#define BTNSTATE_SHORT_RELEASED_EV   0x02

Button is in the short released state.