diff options
author | Jens Arnold <amiconn@rockbox.org> | 2009-06-20 09:27:17 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2009-06-20 09:27:17 +0000 |
commit | 346da2fd5e7d9e0f7b27934d84b5fef848f360af (patch) | |
tree | 585a8acc4719ec4347c42c94e5c4448be4906952 | |
parent | e82be6ead8a81650b48b7ababd5a61b36bf41fcd (diff) |
Fix a few HID contexts to use proper preconditons (no more pause-before-stop and stop event flooding).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21366 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/keymaps/keymap-c200.c | 4 | ||||
-rw-r--r-- | apps/keymaps/keymap-h10.c | 4 | ||||
-rw-r--r-- | apps/keymaps/keymap-ipod.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/keymaps/keymap-c200.c b/apps/keymaps/keymap-c200.c index c9e5d4394e..b6047611ef 100644 --- a/apps/keymaps/keymap-c200.c +++ b/apps/keymaps/keymap-c200.c @@ -281,8 +281,8 @@ static const struct button_mapping button_context_bmark[] = { #ifdef HAVE_USBSTACK static const struct button_mapping button_context_usb_hid[] = { - { ACTION_USB_HID_PLAY, BUTTON_UP, BUTTON_NONE }, - { ACTION_USB_HID_STOP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_USB_HID_PLAY, BUTTON_UP|BUTTON_REL, BUTTON_UP }, + { ACTION_USB_HID_STOP, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP }, { ACTION_USB_HID_SKIPPREV, BUTTON_LEFT, BUTTON_NONE }, { ACTION_USB_HID_SKIPNEXT, BUTTON_RIGHT, BUTTON_NONE }, { ACTION_USB_HID_VOLUP, BUTTON_VOL_UP, BUTTON_NONE }, diff --git a/apps/keymaps/keymap-h10.c b/apps/keymaps/keymap-h10.c index 0c1d4b2331..ff6c66d629 100644 --- a/apps/keymaps/keymap-h10.c +++ b/apps/keymaps/keymap-h10.c @@ -338,8 +338,8 @@ static const struct button_mapping button_context_radio[] = { #ifdef HAVE_USBSTACK static const struct button_mapping button_context_usb_hid[] = { - { ACTION_USB_HID_PLAY, BUTTON_PLAY, BUTTON_NONE }, - { ACTION_USB_HID_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_USB_HID_PLAY, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY }, + { ACTION_USB_HID_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY }, { ACTION_USB_HID_SKIPPREV, BUTTON_REW, BUTTON_NONE }, { ACTION_USB_HID_SKIPNEXT, BUTTON_FF, BUTTON_NONE }, { ACTION_USB_HID_VOLUP, BUTTON_SCROLL_UP, BUTTON_NONE }, diff --git a/apps/keymaps/keymap-ipod.c b/apps/keymaps/keymap-ipod.c index 8170e8c7e1..02c562eb45 100644 --- a/apps/keymaps/keymap-ipod.c +++ b/apps/keymaps/keymap-ipod.c @@ -192,8 +192,8 @@ const struct button_mapping button_context_recscreen[] = { #ifdef HAVE_USBSTACK static const struct button_mapping button_context_usb_hid[] = { - { ACTION_USB_HID_PLAY, BUTTON_PLAY, BUTTON_NONE }, - { ACTION_USB_HID_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_USB_HID_PLAY, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY }, + { ACTION_USB_HID_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY }, { ACTION_USB_HID_SKIPPREV, BUTTON_LEFT, BUTTON_NONE }, { ACTION_USB_HID_SKIPNEXT, BUTTON_RIGHT, BUTTON_NONE }, { ACTION_USB_HID_VOLUP, BUTTON_SCROLL_FWD, BUTTON_NONE }, |