diff options
Diffstat (limited to 'firmware/drivers/button.h')
-rw-r--r-- | firmware/drivers/button.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/drivers/button.h b/firmware/drivers/button.h index 0ff6b58291..d5c194cedb 100644 --- a/firmware/drivers/button.h +++ b/firmware/drivers/button.h | |||
@@ -27,6 +27,8 @@ extern struct event_queue button_queue; | |||
27 | void button_init (void); | 27 | void button_init (void); |
28 | int button_get (bool block); | 28 | int button_get (bool block); |
29 | int button_set_repeat(int newmask); | 29 | int button_set_repeat(int newmask); |
30 | int button_set_release(int newmask); | ||
31 | int button_set_locked(int newmask); | ||
30 | 32 | ||
31 | /* Shared button codes */ | 33 | /* Shared button codes */ |
32 | #define BUTTON_NONE 0x0000 | 34 | #define BUTTON_NONE 0x0000 |
@@ -40,6 +42,9 @@ int button_set_repeat(int newmask); | |||
40 | #define BUTTON_HELD 0x4000 | 42 | #define BUTTON_HELD 0x4000 |
41 | #define BUTTON_REL 0x8000 | 43 | #define BUTTON_REL 0x8000 |
42 | 44 | ||
45 | /* Special message */ | ||
46 | #define BUTTON_LOCKED 0x2000 | ||
47 | |||
43 | #ifdef HAVE_RECORDER_KEYPAD | 48 | #ifdef HAVE_RECORDER_KEYPAD |
44 | 49 | ||
45 | /* Recorder specific button codes */ | 50 | /* Recorder specific button codes */ |
@@ -61,6 +66,9 @@ int button_set_repeat(int newmask); | |||
61 | 66 | ||
62 | #define DEFAULT_REPEAT_MASK (BUTTON_LEFT | BUTTON_RIGHT) | 67 | #define DEFAULT_REPEAT_MASK (BUTTON_LEFT | BUTTON_RIGHT) |
63 | 68 | ||
64 | #endif | 69 | #endif /* HAVE_PLAYER_KEYPAD */ |
70 | |||
71 | #define DEFAULT_RELEASE_MASK 0 | ||
72 | #define DEFAULT_LOCKED_MASK 0 | ||
65 | 73 | ||
66 | #endif | 74 | #endif |