From ee27ba416feaa9e0efe67981021338f6516258b7 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Fri, 12 Nov 2021 19:50:52 +0000 Subject: [PATCH] uisimulator: add keyboard mappings for M3K scrollstrip Change-Id: I2e6d5464fac6d9e1e292b17f5c1bbf646c1555de --- uisimulator/buttonmap/fiio-m3k.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uisimulator/buttonmap/fiio-m3k.c b/uisimulator/buttonmap/fiio-m3k.c index 30d1550ca3..82a2ab0bb5 100644 --- a/uisimulator/buttonmap/fiio-m3k.c +++ b/uisimulator/buttonmap/fiio-m3k.c @@ -61,9 +61,11 @@ int key_to_button(int keyboard_button) new_btn = BUTTON_MENU; break; case SDL_BUTTON_WHEELUP: + case SDLK_PAGEUP: new_btn = BUTTON_SCROLL_BACK; break; case SDL_BUTTON_WHEELDOWN: + case SDLK_PAGEDOWN: new_btn = BUTTON_SCROLL_FWD; break; case SDLK_BACKSPACE: