diff options
Diffstat (limited to 'firmware/export/button.h')
-rw-r--r-- | firmware/export/button.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h index f174262de2..0b6a08a78b 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -30,7 +30,7 @@ int button_get (bool block); | |||
30 | int button_get_w_tmo(int ticks); | 30 | int button_get_w_tmo(int ticks); |
31 | int button_status(void); | 31 | int button_status(void); |
32 | void button_clear_queue(void); | 32 | void button_clear_queue(void); |
33 | #ifdef HAVE_RECORDER_KEYPAD | 33 | #if defined(HAVE_RECORDER_KEYPAD) || defined(HAVE_ONDIO_KEYPAD) |
34 | void button_set_flip(bool flip); /* turn 180 degrees */ | 34 | void button_set_flip(bool flip); /* turn 180 degrees */ |
35 | #endif | 35 | #endif |
36 | 36 | ||
@@ -108,14 +108,23 @@ void button_set_flip(bool flip); /* turn 180 degrees */ | |||
108 | #define BUTTON_F2 0x0200 | 108 | #define BUTTON_F2 0x0200 |
109 | #define BUTTON_F3 0x0400 | 109 | #define BUTTON_F3 0x0400 |
110 | 110 | ||
111 | #elif HAVE_PLAYER_KEYPAD | 111 | #elif defined(HAVE_PLAYER_KEYPAD) |
112 | 112 | ||
113 | /* Jukebox 6000 and Studio specific button codes */ | 113 | /* Jukebox 6000 and Studio specific button codes */ |
114 | #define BUTTON_MENU 0x0002 | 114 | #define BUTTON_MENU 0x0002 |
115 | #define BUTTON_PLAY BUTTON_UP | 115 | #define BUTTON_PLAY BUTTON_UP |
116 | #define BUTTON_STOP BUTTON_DOWN | 116 | #define BUTTON_STOP BUTTON_DOWN |
117 | 117 | ||
118 | #endif /* HAVE_PLAYER_KEYPAD */ | 118 | #elif defined HAVE_ONDIO_KEYPAD |
119 | |||
120 | /* Ondio specific button codes */ | ||
121 | #define BUTTON_MENU 0x0002 | ||
122 | #define BUTTON_PLAY BUTTON_UP | ||
123 | #define BUTTON_STOP BUTTON_DOWN | ||
124 | /* ON is also interpreted as OFF, let's see if that helps a bit */ | ||
125 | #define BUTTON_OFF BUTTON_ON | ||
126 | |||
127 | #endif /* HAVE_RECORDER/PLAYER/ONDIO_KEYPAD */ | ||
119 | 128 | ||
120 | #endif /* HAVE_NEO_KEYPAD */ | 129 | #endif /* HAVE_NEO_KEYPAD */ |
121 | 130 | ||