summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/mrobe-500/button-target.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-04-15 10:35:11 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-04-15 10:35:11 +0000
commit5b5a626bb6ba54ccdcd90741cea5f9cbd0f79553 (patch)
tree0bf60b83aad534757330162ad4f683f142955ccb /firmware/target/arm/tms320dm320/mrobe-500/button-target.h
parent50851794a6bdd585ce70ecb430b1f798fb90936b (diff)
downloadrockbox-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 'firmware/target/arm/tms320dm320/mrobe-500/button-target.h')
-rw-r--r--firmware/target/arm/tms320dm320/mrobe-500/button-target.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/button-target.h b/firmware/target/arm/tms320dm320/mrobe-500/button-target.h
index 1f17f3f3c8..ae23346814 100644
--- a/firmware/target/arm/tms320dm320/mrobe-500/button-target.h
+++ b/firmware/target/arm/tms320dm320/mrobe-500/button-target.h
@@ -53,14 +53,30 @@ void use_calibration(bool enable);
53 53
54#define BUTTON_TOUCH 0x00000200 54#define BUTTON_TOUCH 0x00000200
55 55
56/* compatibility hacks */ 56/* Touchpad Screen Area Buttons */
57#define BUTTON_TOPLEFT 0x00004000
58#define BUTTON_TOPMIDDLE 0x00008000
59#define BUTTON_TOPRIGHT 0x00010000
60#define BUTTON_MIDLEFT 0x00020000
61#define BUTTON_CENTER 0x00040000
62#define BUTTON_MIDRIGHT 0x00080000
63#define BUTTON_BOTTOMLEFT 0x00100000
64#define BUTTON_BOTTOMMIDDLE 0x00200000
65#define BUTTON_BOTTOMRIGHT 0x00400000
66
67/* compatibility hacks
68 not mapped to the touchpad button areas because
69 the touchpad is not always in that mode */
57#define BUTTON_LEFT BUTTON_RC_REW 70#define BUTTON_LEFT BUTTON_RC_REW
58#define BUTTON_RIGHT BUTTON_RC_FF 71#define BUTTON_RIGHT BUTTON_RC_FF
59 72
60#define POWEROFF_BUTTON BUTTON_POWER 73#define POWEROFF_BUTTON BUTTON_POWER
61#define POWEROFF_COUNT 10 74#define POWEROFF_COUNT 10
62 75
63#define BUTTON_MAIN BUTTON_POWER 76#define BUTTON_MAIN (BUTTON_POWER| \
77 BUTTON_TOPLEFT|BUTTON_TOPMIDDLE|BUTTON_TOPRIGHT \
78 BUTTON_MIDLEFT|BUTTON_CENTER|BUTTON_MIDRIGHT \
79 BUTTON_BOTTOMLEFT|BUTTON_BOTTOMMIDDLE|BUTTON_BOTTOMRIGHT)
64 80
65#define BUTTON_REMOTE (BUTTON_RC_HEART|BUTTON_RC_MODE| \ 81#define BUTTON_REMOTE (BUTTON_RC_HEART|BUTTON_RC_MODE| \
66 BUTTON_RC_VOL_DOWN|BUTTON_RC_VOL_UP| \ 82 BUTTON_RC_VOL_DOWN|BUTTON_RC_VOL_UP| \