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

Macros

#define BUTTON_ID_UP   0x01
 The up button. More...
 
#define BUTTON_ID_ENTER   0x02
 The enter button. More...
 
#define BUTTON_ID_DOWN   0x04
 The down button. More...
 
#define BUTTON_ID_RIGHT   0x08
 The right button. More...
 
#define BUTTON_ID_LEFT   0x10
 The left button. More...
 
#define BUTTON_ID_ESCAPE   0x20
 The exit (escape) button. More...
 
#define BUTTON_ID_ALL   0x3f
 All buttons mask. More...
 
#define BTN1   BUTTON_ID_ESCAPE
 The exit (escape) button. More...
 
#define BTN2   BUTTON_ID_RIGHT
 The right button. More...
 
#define BTN3   BUTTON_ID_LEFT
 The left button. More...
 
#define BTN4   BUTTON_ID_ENTER
 The enter button. More...
 
#define BTN5   BUTTON_ID_UP
 The up button. More...
 
#define BTN6   BUTTON_ID_DOWN
 The down button. More...
 
#define BTNEXIT   BTN1
 The exit (escape) button. More...
 
#define BTNRIGHT   BTN2
 The right button. More...
 
#define BTNLEFT   BTN3
 The left button. More...
 
#define BTNCENTER   BTN4
 The enter button. More...
 
#define BTNUP   BTN5
 The up button. More...
 
#define BTNDOWN   BTN6
 The down button. More...
 
#define BTNANY   BUTTON_ID_ALL
 Any button. More...
 
#define NO_OF_BTNS   6
 The number of EV3 buttons. More...
 
#define NUM_BUTTONS   6
 Number of buttons in the system. More...
 

Detailed Description

Constants to specify which button to use with button module functions.

See Also
ButtonPressed(), ButtonState(), ReadButtonEx(),

Macro Definition Documentation

#define BTN1   BUTTON_ID_ESCAPE

The exit (escape) button.

#define BTN2   BUTTON_ID_RIGHT

The right button.

#define BTN3   BUTTON_ID_LEFT

The left button.

#define BTN4   BUTTON_ID_ENTER

The enter button.

#define BTN5   BUTTON_ID_UP

The up button.

#define BTN6   BUTTON_ID_DOWN

The down button.

#define BTNANY   BUTTON_ID_ALL

Any button.

#define BTNCENTER   BTN4

The enter button.

#define BTNDOWN   BTN6

The down button.

#define BTNEXIT   BTN1

The exit (escape) button.

#define BTNLEFT   BTN3

The left button.

#define BTNRIGHT   BTN2

The right button.

#define BTNUP   BTN5

The up button.

#define BUTTON_ID_ALL   0x3f

All buttons mask.

#define BUTTON_ID_DOWN   0x04

The down button.

#define BUTTON_ID_ENTER   0x02

The enter button.

#define BUTTON_ID_ESCAPE   0x20

The exit (escape) button.

#define BUTTON_ID_LEFT   0x10

The left button.

#define BUTTON_ID_RIGHT   0x08

The right button.

#define BUTTON_ID_UP   0x01

The up button.

#define NO_OF_BTNS   6

The number of EV3 buttons.

#define NUM_BUTTONS   6

Number of buttons in the system.