summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2024-05-30 11:01:29 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2024-05-30 11:01:29 -0400
commit7ec1151dddb0b15796113e41284757408e94a63f (patch)
treef243b05907edf457efa875c039a86123d2fd7c04
parent3a60f3a0f74f7aef53faf57cb06e7ef55875d8a1 (diff)
downloadrockbox-7ec1151dddb0b15796113e41284757408e94a63f.tar.gz
rockbox-7ec1151dddb0b15796113e41284757408e94a63f.zip
[BugFix] add button maps for iPod6GSim
Change-Id: I395d940a1b7dd3cb858a178150762b2301a3ca12
-rw-r--r--uisimulator/buttonmap/ipod.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/uisimulator/buttonmap/ipod.c b/uisimulator/buttonmap/ipod.c
index 1fc95d8dd1..d516364b5f 100644
--- a/uisimulator/buttonmap/ipod.c
+++ b/uisimulator/buttonmap/ipod.c
@@ -54,6 +54,7 @@ int key_to_button(int keyboard_button)
54 case SDLK_SPACE: 54 case SDLK_SPACE:
55 new_btn = BUTTON_SELECT; 55 new_btn = BUTTON_SELECT;
56 break; 56 break;
57 case SDLK_ESCAPE:
57 case SDLK_KP_PERIOD: 58 case SDLK_KP_PERIOD:
58 case SDLK_INSERT: 59 case SDLK_INSERT:
59 new_btn = BUTTON_MENU; 60 new_btn = BUTTON_MENU;
@@ -101,6 +102,14 @@ struct button_map bm[] = {
101 { SDLK_KP_PLUS, 95, 326, 27, "Play" }, 102 { SDLK_KP_PLUS, 95, 326, 27, "Play" },
102 { SDLK_KP8, 57, 233, 29, "Scroll Back" }, 103 { SDLK_KP8, 57, 233, 29, "Scroll Back" },
103 { SDLK_KP2, 132, 226, 29, "Scroll Fwd" }, 104 { SDLK_KP2, 132, 226, 29, "Scroll Fwd" },
105#elif defined (IPOD_6G)
106 { SDLK_KP5, 175, 432, 45, "Select" },
107 { SDLK_KP4, 75, 432, 38, "Left" },
108 { SDLK_KP6, 275, 432, 39, "Right" },
109 { SDLK_KP_PERIOD, 175, 350, 34, "Menu" },
110 { SDLK_KP_PLUS, 175, 539, 41, "Play" },
111 { SDLK_KP8, 100, 375, 35, "Scroll Back" },
112 { SDLK_KP2, 245, 375, 35, "Scroll Fwd" },
104#elif defined (IPOD_COLOR) 113#elif defined (IPOD_COLOR)
105 { SDLK_KP5, 128, 362, 35, "Select" }, 114 { SDLK_KP5, 128, 362, 35, "Select" },
106 { SDLK_KP4, 55, 358, 38, "Left" }, 115 { SDLK_KP4, 55, 358, 38, "Left" },