mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
- u can use real keyboard on OSK (when searching for e.g.) - add hack for "Swap OK/Cancel buttons in menu" when using OSK - using "Unified menu controls" for keystrokes so will behave the same as controller which is to expect refactor commits log
40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
From a8707d43317491e1ebb8954875642db3a2880100 Mon Sep 17 00:00:00 2001
|
|
From: Apaczer <94932128+Apaczer@users.noreply.github.com>
|
|
Date: Wed, 30 Apr 2025 22:54:35 +0200
|
|
Subject: [PATCH] input_driver: hack for swapped OK/CANCEL in OSK
|
|
|
|
(normal behaviour)
|
|
cancel - rm sign
|
|
ok - add sign
|
|
---
|
|
input/input_driver.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/input/input_driver.c b/input/input_driver.c
|
|
index a7f930f86d..fb064cc513 100644
|
|
--- a/input/input_driver.c
|
|
+++ b/input/input_driver.c
|
|
@@ -7194,6 +7194,7 @@ void input_driver_collect_system_input(input_driver_state_t *input_st,
|
|
{
|
|
#ifdef MIYOO
|
|
{RETROK_LALT, RETRO_DEVICE_ID_JOYPAD_A },
|
|
+ {RETROK_LCTRL, RETRO_DEVICE_ID_JOYPAD_B },
|
|
#else
|
|
{RETROK_LCTRL, RETRO_DEVICE_ID_JOYPAD_A },
|
|
#endif
|
|
@@ -7207,7 +7208,10 @@ void input_driver_collect_system_input(input_driver_state_t *input_st,
|
|
};
|
|
|
|
if (settings->bools.input_menu_swap_ok_cancel_buttons)
|
|
- ids[0][1] = RETRO_DEVICE_ID_JOYPAD_B;
|
|
+ {
|
|
+ ids[0][1] = RETRO_DEVICE_ID_JOYPAD_A;
|
|
+ ids[1][1] = RETRO_DEVICE_ID_JOYPAD_B;
|
|
+ }
|
|
|
|
for (i = 0; i < ARRAY_SIZE(ids); i++)
|
|
{
|
|
--
|
|
2.45.2.windows.1
|
|
|