mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-06 21:25:03 -05:00
FS#13698 - Rockblox don't accept control commands
FiiO M3K - you have to hold up or down before the pieces will rotate AFAICT the scrollpad on the m3k is being presented as a scrollwheel and it waits for 3 events before enabling rotation. This behavior is blocking the user presses till you get a repeat event Fix: Enable the scrollwheel at start for the m3k (and m3k linux) Change-Id: Ic36048dae6f691e9085ab37ffbf67be07c2035ac
This commit is contained in:
parent
5e7a4290b2
commit
7bd04ad89a
1 changed files with 17 additions and 10 deletions
|
|
@ -433,6 +433,7 @@
|
|||
#define ROCKBLOX_RIGHT BUTTON_NEXT
|
||||
#define ROCKBLOX_DROP (BUTTON_PLAY|BUTTON_REL)
|
||||
#define ROCKBLOX_RESTART (BUTTON_PLAY|BUTTON_REPEAT)
|
||||
#define ROCKBLOX_SCROLL_ENABLED 1 //Untested Probably needed
|
||||
|
||||
#elif (CONFIG_KEYPAD == IHIFI_770_PAD) || (CONFIG_KEYPAD == IHIFI_800_PAD)
|
||||
|
||||
|
|
@ -465,6 +466,7 @@
|
|||
#define ROCKBLOX_RIGHT BUTTON_RIGHT
|
||||
#define ROCKBLOX_DROP BUTTON_PLAY
|
||||
#define ROCKBLOX_RESTART BUTTON_BACK
|
||||
#define ROCKBLOX_SCROLL_ENABLED 1
|
||||
|
||||
#elif CONFIG_KEYPAD == SHANLING_Q1_PAD
|
||||
/* use touchscreen */
|
||||
|
|
@ -858,7 +860,12 @@ static void new_block(void);
|
|||
|
||||
#ifdef HAVE_SCROLLWHEEL
|
||||
int wheel_events = 0, last_wheel_event = 0;
|
||||
bool wheel_enabled = false;
|
||||
#ifdef ROCKBLOX_SCROLL_ENABLED
|
||||
/* Bugfix M3K has a scrollpad that is also up down buttons */
|
||||
bool wheel_enabled = true;
|
||||
#else
|
||||
bool wheel_enabled = false;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static const short scoring[4] = { /* scoring for each number of lines */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue