diff options
Diffstat (limited to 'apps/keymaps/keymap-ondavx747.c')
-rw-r--r-- | apps/keymaps/keymap-ondavx747.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-ondavx747.c b/apps/keymaps/keymap-ondavx747.c index 82fde820fb..0b7f1b3870 100644 --- a/apps/keymaps/keymap-ondavx747.c +++ b/apps/keymaps/keymap-ondavx747.c | |||
@@ -152,6 +152,19 @@ static const struct button_mapping button_context_keyboard[] = { | |||
152 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) | 152 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) |
153 | }; /* button_context_keyboard */ | 153 | }; /* button_context_keyboard */ |
154 | 154 | ||
155 | #ifdef HAVE_USBSTACK | ||
156 | static const struct button_mapping button_context_usb_hid[] = { | ||
157 | { ACTION_USB_HID_VOLUP, BUTTON_VOL_UP, BUTTON_NONE }, | ||
158 | { ACTION_USB_HID_VOLUP, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE }, | ||
159 | { ACTION_USB_HID_VOLDOWN, BUTTON_VOL_DOWN, BUTTON_NONE }, | ||
160 | { ACTION_USB_HID_VOLDOWN, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | ||
161 | { ACTION_USB_HID_MUTE, BUTTON_POWER, BUTTON_NONE }, | ||
162 | { ACTION_USB_HID_MENU, BUTTON_MENU, BUTTON_NONE }, | ||
163 | |||
164 | LAST_ITEM_IN_LIST | ||
165 | }; /* button_context_usb_hid */ | ||
166 | #endif | ||
167 | |||
155 | const struct button_mapping* target_get_context_mapping(int context) | 168 | const struct button_mapping* target_get_context_mapping(int context) |
156 | { | 169 | { |
157 | switch (context) | 170 | switch (context) |
@@ -196,6 +209,10 @@ const struct button_mapping* target_get_context_mapping(int context) | |||
196 | return button_context_pitchscreen; | 209 | return button_context_pitchscreen; |
197 | case CONTEXT_KEYBOARD: | 210 | case CONTEXT_KEYBOARD: |
198 | return button_context_keyboard; | 211 | return button_context_keyboard; |
212 | #ifdef HAVE_USBSTACK | ||
213 | case CONTEXT_USB_HID: | ||
214 | return button_context_usb_hid; | ||
215 | #endif | ||
199 | } | 216 | } |
200 | return button_context_standard; | 217 | return button_context_standard; |
201 | } | 218 | } |