summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-04-15 11:00:38 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-04-15 11:00:38 +0000
commit970cfee39422a64f425e7af7d290fa6c92103ec9 (patch)
tree7eee07e0f0585a41b25fa070e0f6d9fb8eb7aeb7 /firmware/target/arm
parent5b5a626bb6ba54ccdcd90741cea5f9cbd0f79553 (diff)
woops... fix red and some svn keywords.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17115 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/tcc780x/cowond2/button-cowond2.c10
-rw-r--r--firmware/target/arm/tcc780x/cowond2/button-target.h11
2 files changed, 16 insertions, 5 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c
index 12fafe6c8c..ea37893f40 100644
--- a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c
+++ b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c
@@ -22,6 +22,16 @@
#include "button.h"
#include "adc.h"
+static enum touchpad_mode current_mode = TOUCHPAD_POINT;
+void touchpad_set_mode(enum touchpad_mode mode)
+{
+ current_mode = mode;
+}
+enum touchpad_mode touchpad_get_mode(void)
+{
+ return current_mode;
+}
+
void button_init_device(void)
{
/* Nothing to do */
diff --git a/firmware/target/arm/tcc780x/cowond2/button-target.h b/firmware/target/arm/tcc780x/cowond2/button-target.h
index 573ab03a11..2890ef65a3 100644
--- a/firmware/target/arm/tcc780x/cowond2/button-target.h
+++ b/firmware/target/arm/tcc780x/cowond2/button-target.h
@@ -35,11 +35,12 @@ int button_read_device(void);
#define BUTTON_MINUS 0x00000004
#define BUTTON_MENU 0x00000008
-/* compatibility hacks
- not mapped to the touchpad button areas because
- the touchpad is not always in that mode */
-#define BUTTON_LEFT BUTTON_MINUS
-#define BUTTON_RIGHT BUTTON_PLUS
+/* compatibility hacks These definatly need fixing */
+#define BUTTON_LEFT BUTTON_MIDLEFT
+#define BUTTON_RIGHT BUTTON_MIDRIGHT
+#define BUTTON_SELECT BUTTON_CENTER
+#define BUTTON_UP BUTTON_TOPMIDDLE
+#define BUTTON_DOWN BUTTON_BOTTOMMIDDLE
/* Faked buttons based on touchscreen quadrants (not yet read) */
/* Touchpad Screen Area Buttons */