diff options
author | chunggeol.kim <chunggeol.kim@samsung.com> | 2010-09-16 21:36:55 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2010-09-17 09:38:12 -0700 |
commit | f5d9022b51ab426139c59913ef32b73752bf4a7c (patch) | |
tree | 7e161db2f85e8de039b4c3a6f4413a634ceeccd8 /recovery | |
parent | 454459c9615e71c20ede9cd084db4327184f7b9b (diff) | |
download | device_samsung_crespo-f5d9022b51ab426139c59913ef32b73752bf4a7c.zip device_samsung_crespo-f5d9022b51ab426139c59913ef32b73752bf4a7c.tar.gz device_samsung_crespo-f5d9022b51ab426139c59913ef32b73752bf4a7c.tar.bz2 |
S5PC11X: RECOVERY: update the Key_value for using recovery UI
Change-Id: Id1b422561c84df3ba36211aa4de51dbea8aa4d07
Diffstat (limited to 'recovery')
-rw-r--r-- | recovery/recovery_ui.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/recovery/recovery_ui.c b/recovery/recovery_ui.c index b094d14..61283f1 100644 --- a/recovery/recovery_ui.c +++ b/recovery/recovery_ui.c @@ -35,14 +35,14 @@ int device_recovery_start() { int device_toggle_display(volatile char* key_pressed, int key_code) { // hold power and press volume-up - return key_pressed[0x1a] && key_code == 0x2a; + return key_pressed[KEY_POWER] && key_code == KEY_VOLUMEUP; } int device_reboot_now(volatile char* key_pressed, int key_code) { // Reboot if the power key is pressed five times in a row, with // no other keys in between. static int presses = 0; - if (key_code == 0x1a) { // power button + if (key_code == KEY_POWER) { // power button ++presses; return presses == 5; } else { @@ -56,16 +56,14 @@ int device_handle_key(int key_code, int visible) { switch (key_code) { case KEY_DOWN: case KEY_VOLUMEDOWN: - case 0x3a: // crespo volume-down return HIGHLIGHT_DOWN; case KEY_UP: case KEY_VOLUMEUP: - case 0x2a: // crespo volume-up return HIGHLIGHT_UP; case KEY_ENTER: - case 0x1a: // crespo power + case KEY_POWER: // crespo power return SELECT_ITEM; } } |