1
0
Fork 0
forked from len0rd/rockbox

(1) Remapped BUTTON_CANCEL->BUTTON_OFF for gmini better representing its function, and for consistency. (2) Removed TAB chars, prettified formatting

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5634 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-01-23 00:27:21 +00:00
parent 756e7404d8
commit 9794cd449b
2 changed files with 51 additions and 51 deletions

View file

@ -474,7 +474,7 @@ static int button_read(void)
btn |= BUTTON_UP;
if (adc_read(6) < 0x240)
btn |= BUTTON_CANCEL;
btn |= BUTTON_OFF;
else if (adc_read(6) < 0x280)
btn |= BUTTON_PLAY;
else if (adc_read(6) < 0x300)

View file

@ -30,7 +30,7 @@ int button_get (bool block);
int button_get_w_tmo(int ticks);
int button_status(void);
void button_clear_queue(void);
#if CONFIG_KEYPAD == RECORDER_PAD || CONFIG_KEYPAD == ONDIO_PAD || CONFIG_KEYPAD == IRIVER_H100_PAD
#ifdef HAVE_LCD_BITMAP
void button_set_flip(bool flip); /* turn 180 degrees */
#endif
@ -103,7 +103,7 @@ bool button_hold(void);
#elif CONFIG_KEYPAD == GMINI100_PAD
#define BUTTON_ON 0x0001
#define BUTTON_CANCEL 0x0002
#define BUTTON_OFF 0x0002
#define BUTTON_PLAY 0x0004
#define BUTTON_UP 0x0010
#define BUTTON_DOWN 0x0020