diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-04-15 10:35:11 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-04-15 10:35:11 +0000 |
commit | 5b5a626bb6ba54ccdcd90741cea5f9cbd0f79553 (patch) | |
tree | 0bf60b83aad534757330162ad4f683f142955ccb /apps/action.h | |
parent | 50851794a6bdd585ce70ecb430b1f798fb90936b (diff) | |
download | rockbox-5b5a626bb6ba54ccdcd90741cea5f9cbd0f79553.tar.gz rockbox-5b5a626bb6ba54ccdcd90741cea5f9cbd0f79553.zip |
Setup the touchpads to have two modes - stylus and button - and set them in button mode by default.
in button mode the touchpad is split into a 3x3 grid for 9 seperate buttons which can be used by the action system like real buttons.
Unify the keymap file for the touchpads in button mode. the target keymap file only needs to worry about real buttons.
(As these ports mature each screen will need to be fixed seperatly to be able to use stylus mode (the lists can already but don't change mode just yet.)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17114 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.h')
-rw-r--r-- | apps/action.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/action.h b/apps/action.h index c1c60c9b0b..96e8086baa 100644 --- a/apps/action.h +++ b/apps/action.h | |||
@@ -25,14 +25,15 @@ | |||
25 | #define TIMEOUT_NOBLOCK 0 | 25 | #define TIMEOUT_NOBLOCK 0 |
26 | 26 | ||
27 | #define CONTEXT_STOPSEARCHING 0xFFFFFFFF | 27 | #define CONTEXT_STOPSEARCHING 0xFFFFFFFF |
28 | #define CONTEXT_REMOTE 0x80000000 /* | this against another context to get remote buttons for that context */ | 28 | #define CONTEXT_REMOTE 0x80000000 /* | this against another context to get remote buttons for that context */ |
29 | #define CONTEXT_CUSTOM 0x40000000 /* | this against anything to get your context number */ | 29 | #define CONTEXT_CUSTOM 0x40000000 /* | this against anything to get your context number */ |
30 | #define CONTEXT_CUSTOM2 0x20000000 /* as above */ | ||
30 | 31 | ||
31 | #define LAST_ITEM_IN_LIST { CONTEXT_STOPSEARCHING, BUTTON_NONE, BUTTON_NONE } | 32 | #define LAST_ITEM_IN_LIST { CONTEXT_STOPSEARCHING, BUTTON_NONE, BUTTON_NONE } |
32 | #define LAST_ITEM_IN_LIST__NEXTLIST(a) { a, BUTTON_NONE, BUTTON_NONE } | 33 | #define LAST_ITEM_IN_LIST__NEXTLIST(a) { a, BUTTON_NONE, BUTTON_NONE } |
33 | 34 | ||
34 | #ifndef HAS_BUTTON_HOLD | 35 | #ifndef HAS_BUTTON_HOLD |
35 | #define ALLOW_SOFTLOCK 0x20000000 /* will be stripped.. never needed except in calls to get_action() */ | 36 | #define ALLOW_SOFTLOCK 0x10000000 /* will be stripped.. never needed except in calls to get_action() */ |
36 | #else | 37 | #else |
37 | #define ALLOW_SOFTLOCK 0 | 38 | #define ALLOW_SOFTLOCK 0 |
38 | #endif | 39 | #endif |
@@ -79,6 +80,7 @@ enum { | |||
79 | ACTION_UNKNOWN, | 80 | ACTION_UNKNOWN, |
80 | ACTION_REDRAW, /* returned if keys are locked and we splash()'ed */ | 81 | ACTION_REDRAW, /* returned if keys are locked and we splash()'ed */ |
81 | ACTION_TOUCHPAD, | 82 | ACTION_TOUCHPAD, |
83 | ACTION_TOUCHPAD_MODE, /* toggle the touchpad mode */ | ||
82 | 84 | ||
83 | /* standard actions, use these first */ | 85 | /* standard actions, use these first */ |
84 | ACTION_STD_PREV, | 86 | ACTION_STD_PREV, |