diff options
author | Benjamin Brown <foolshperson@gmail.com> | 2022-08-15 18:22:40 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2022-08-19 00:31:00 -0400 |
commit | a6e9ecb0862b691ecadfa21381666158f76bddba (patch) | |
tree | c8521135c36e0ff9de518ad3ec81e1b32284dfac /apps/plugins/brickmania.c | |
parent | c1c0318c8dcb8ac0228ac6b93cc801bae65eacf0 (diff) | |
download | rockbox-a6e9ecb0862b691ecadfa21381666158f76bddba.tar.gz rockbox-a6e9ecb0862b691ecadfa21381666158f76bddba.zip |
Updated keymaps for Sansa Connect
* added scroll wheel to doom
* added scroll wheel to brickmania
* changed spacerocks to use scroll wheel instead of buttons
Change-Id: I9d6ff0b4c5deea147178f5cd9f96ae435e7b5cd8
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r-- | apps/plugins/brickmania.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 4983d5a417..3e7ea27441 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -111,8 +111,7 @@ | |||
111 | 111 | ||
112 | #elif CONFIG_KEYPAD == SANSA_C200_PAD || \ | 112 | #elif CONFIG_KEYPAD == SANSA_C200_PAD || \ |
113 | CONFIG_KEYPAD == SANSA_CLIP_PAD || \ | 113 | CONFIG_KEYPAD == SANSA_CLIP_PAD || \ |
114 | CONFIG_KEYPAD == SANSA_M200_PAD || \ | 114 | CONFIG_KEYPAD == SANSA_M200_PAD |
115 | CONFIG_KEYPAD == SANSA_CONNECT_PAD | ||
116 | #define QUIT BUTTON_POWER | 115 | #define QUIT BUTTON_POWER |
117 | #define LEFT BUTTON_LEFT | 116 | #define LEFT BUTTON_LEFT |
118 | #define RIGHT BUTTON_RIGHT | 117 | #define RIGHT BUTTON_RIGHT |
@@ -122,6 +121,18 @@ CONFIG_KEYPAD == SANSA_CONNECT_PAD | |||
122 | #define UP BUTTON_UP | 121 | #define UP BUTTON_UP |
123 | #define DOWN BUTTON_DOWN | 122 | #define DOWN BUTTON_DOWN |
124 | 123 | ||
124 | #elif CONFIG_KEYPAD == SANSA_CONNECT_PAD | ||
125 | #define QUIT BUTTON_POWER | ||
126 | #define LEFT BUTTON_LEFT | ||
127 | #define RIGHT BUTTON_RIGHT | ||
128 | #define SELECT BUTTON_SELECT | ||
129 | #define UP BUTTON_UP | ||
130 | #define DOWN BUTTON_DOWN | ||
131 | |||
132 | #define SCROLL_FWD(x) ((x) & BUTTON_SCROLL_FWD) | ||
133 | #define SCROLL_BACK(x) ((x) & BUTTON_SCROLL_BACK) | ||
134 | |||
135 | |||
125 | #elif CONFIG_KEYPAD == IRIVER_H10_PAD | 136 | #elif CONFIG_KEYPAD == IRIVER_H10_PAD |
126 | #define QUIT BUTTON_POWER | 137 | #define QUIT BUTTON_POWER |
127 | #define LEFT BUTTON_LEFT | 138 | #define LEFT BUTTON_LEFT |