diff options
author | William Wilgus <wilgus.william@gmail.com> | 2020-09-12 05:03:12 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2020-09-13 16:23:24 +0000 |
commit | c62493e98adfd27c16eb2adb2ecd22716813b705 (patch) | |
tree | c5d2a0fbdcf145584518289885e7676f82b20a29 /firmware/target/mips/ingenic_jz47xx/xduoo_x3/button-target.h | |
parent | 6b674a6a0a347bd4cb946b37b6e075dc2715f7ac (diff) | |
download | rockbox-c62493e98adfd27c16eb2adb2ecd22716813b705.tar.gz rockbox-c62493e98adfd27c16eb2adb2ecd22716813b705.zip |
Xduoo X3 Add tree scrolling FS#13240, Emulate Multibutton presses
Fixes deficiencies with the button system on the X3
The x3 has an interesting button layout.
Multiple key presses are NOT supported unless
[BUTTON_POWER] is one of the combined keys
As you can imagine this causes problems as the power button takes
precedence in the button system and initiates a shutdown if the
key is held too long
instead of BUTTON_POWER use BUTTON_PWRALT in combination with other keys
IF using as a prerequsite button then BUTTON_POWER should be used
Multiple buttons are emulated by button_read_device but there are a few
caveats to be aware of:
Button Order Matters!
different keys have different priorities, higher priority keys 'overide'
the lower priority keys
VOLUP[7] VOLDN[6] PREV[5] NEXT[4] PLAY[3] OPTION[2] HOME[1]
There will be no true release or repeat events, the user can let off the
button pressed initially and it will still continue to appear to be
pressed as long as the second key is held
Tree scrolling is PLAY+NEXT or PLAY+PREV
Change-Id: I88dfee1c70a6a99659e8227f5becacc50cc43910
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/xduoo_x3/button-target.h')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/xduoo_x3/button-target.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/button-target.h b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/button-target.h index 2dd94b14bc..9e2800d57b 100644 --- a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/button-target.h +++ b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/button-target.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #define BUTTON_PLAY 0x00000020 | 32 | #define BUTTON_PLAY 0x00000020 |
33 | #define BUTTON_VOL_UP 0x00000040 | 33 | #define BUTTON_VOL_UP 0x00000040 |
34 | #define BUTTON_VOL_DOWN 0x00000080 | 34 | #define BUTTON_VOL_DOWN 0x00000080 |
35 | 35 | #define BUTTON_PWRALT 0x00000100 /* BUTTON_POWER combo with other buttons */ | |
36 | #define BUTTON_LEFT 0 | 36 | #define BUTTON_LEFT 0 |
37 | #define BUTTON_RIGHT 0 | 37 | #define BUTTON_RIGHT 0 |
38 | 38 | ||