summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-11-12 01:22:32 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2020-11-12 01:22:32 -0500
commit1a68856f52f1b6dc89863758404e54c744fcf53a (patch)
tree7db9e2dd14eab393918e509248bceaaa3073dd48 /firmware
parent4e5499606bd34195cdee214221800a2462cdd7c1 (diff)
downloadrockbox-1a68856f52f1b6dc89863758404e54c744fcf53a.tar.gz
rockbox-1a68856f52f1b6dc89863758404e54c744fcf53a.tar.bz2
rockbox-1a68856f52f1b6dc89863758404e54c744fcf53a.zip
Rocker Add WPS and Tree Hotkey, button codes in debug menu
VolUp+VolDown becomes the wps and tree (file browser) hotkey Change-Id: I0cba96927420c318506bc0c15dabcb809cd81647
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config/agptekrocker.h3
-rw-r--r--firmware/target/hosted/agptek/debug-agptek.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/config/agptekrocker.h b/firmware/export/config/agptekrocker.h
index 637898aaff..42abf4e9f0 100644
--- a/firmware/export/config/agptekrocker.h
+++ b/firmware/export/config/agptekrocker.h
@@ -61,3 +61,6 @@
/* Generic HiBy stuff */
#include "hibylinux.h"
+
+/* Define this if a programmable hotkey is mapped */
+#define HAVE_HOTKEY
diff --git a/firmware/target/hosted/agptek/debug-agptek.c b/firmware/target/hosted/agptek/debug-agptek.c
index d0ca613323..8ef0048945 100644
--- a/firmware/target/hosted/agptek/debug-agptek.c
+++ b/firmware/target/hosted/agptek/debug-agptek.c
@@ -70,6 +70,7 @@ bool dbg_hw_info(void)
#endif
btn = button_read_device();
+ lcd_putsf(0, line++, "btn: %d", btn);
lcd_update();
sleep(HZ/16);