Add button messages and handling
This commit is contained in:
parent
b13e74e7ce
commit
6e7a56e3e8
3 changed files with 110 additions and 5 deletions
|
@ -65,11 +65,28 @@
|
|||
#define MW_ACCELEROMETER 0xea
|
||||
|
||||
|
||||
/* screen modes */
|
||||
#define MW_SCREEN_MODE_IDLE 0x00
|
||||
#define MW_SCREEN_MODE_APPLICATION 0x01
|
||||
#define MW_SCREEN_MODE_NOTIFICATION 0x02
|
||||
#define MW_SCREEN_MODE_SCROLL 0x03
|
||||
|
||||
|
||||
/* button definitions */
|
||||
#define MW_BUTTON_A 0x00
|
||||
#define MW_BUTTON_B 0x01
|
||||
#define MW_BUTTON_C 0x02
|
||||
#define MW_BUTTON_D 0x03
|
||||
#define MW_BUTTON_RES4 0x04
|
||||
#define MW_BUTTON_E 0x05
|
||||
#define MW_BUTTON_F 0x06
|
||||
#define MW_BUTTON_PULLSW 0x07
|
||||
|
||||
#define MW_BUTTON_IMMEDIATE 0x00
|
||||
#define MW_BUTTON_PRESS_AND_RELEASE 0x01
|
||||
#define MW_BUTTON_HOLD_RELEASE 0x02
|
||||
#define MW_BUTTON_LONG_HOLD_RELEASE 0x03
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue