From fcb7d61762370be67223f9a14df96d968228aa88 Mon Sep 17 00:00:00 2001 From: Rob Purchase Date: Sun, 22 Jun 2008 19:19:48 +0000 Subject: A basic seek/skip WPS keymap for touchscreen targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17755 a1c6a512-1295-4272-9138-f99709370657 --- apps/keymaps/keymap-touchpad.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/keymaps/keymap-touchpad.c') diff --git a/apps/keymaps/keymap-touchpad.c b/apps/keymaps/keymap-touchpad.c index 7b60a80ed1..a6a4baad66 100644 --- a/apps/keymaps/keymap-touchpad.c +++ b/apps/keymaps/keymap-touchpad.c @@ -67,6 +67,15 @@ static const struct button_mapping button_context_standard[] = { }; /* button_context_standard */ static const struct button_mapping button_context_wps[] = { + + { ACTION_WPS_SKIPNEXT, BUTTON_MIDRIGHT|BUTTON_REL, BUTTON_MIDRIGHT }, + { ACTION_WPS_SKIPPREV, BUTTON_MIDLEFT|BUTTON_REL, BUTTON_MIDLEFT }, + + { ACTION_WPS_SEEKBACK, BUTTON_MIDLEFT|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_WPS_SEEKFWD, BUTTON_MIDRIGHT|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_WPS_STOPSEEK, BUTTON_MIDLEFT|BUTTON_REL, BUTTON_MIDLEFT|BUTTON_REPEAT }, + { ACTION_WPS_STOPSEEK, BUTTON_MIDRIGHT|BUTTON_REL, BUTTON_MIDRIGHT|BUTTON_REPEAT }, + LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM2|CONTEXT_WPS) }; /* button_context_wps */ -- cgit v1.2.3