Add controller support
Change-Id: I358bf2c02cb7b07f7ca3ffad7cd3fc84768194ea
diff --git a/recovery_ui/device.cpp b/recovery_ui/device.cpp
index a740fbd..e950ea6 100644
--- a/recovery_ui/device.cpp
+++ b/recovery_ui/device.cpp
@@ -130,11 +130,15 @@
case KEY_DOWN:
case KEY_VOLUMEDOWN:
case KEY_MENU:
+ case BTN_NORTH:
+ case BTN_DPAD_DOWN:
return kHighlightDown;
case KEY_UP:
case KEY_VOLUMEUP:
case KEY_SEARCH:
+ case BTN_WEST:
+ case BTN_DPAD_UP:
return kHighlightUp;
case KEY_SCROLLUP:
@@ -146,6 +150,8 @@
case KEY_POWER:
case BTN_MOUSE:
case KEY_SEND:
+ case BTN_SOUTH:
+ case BTN_START:
return kInvokeItem;
case KEY_HOME: