woops... fix red and some svn keywords.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17115 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-04-15 11:00:38 +00:00
parent 5b5a626bb6
commit 970cfee394
4 changed files with 29 additions and 9 deletions

View file

@ -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 */

View file

@ -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 */