mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
DINGUX: Use virtual keyboard event directly, rather than using keycode.
As the virtual keyboard trigger has been moved to CTRL-F7, the previous code which generates a unmodified F7 event to do this will not work. Rather than just adding the CTRL modifier, this code changes the backend to directly generate the virtual keyboard trigger event directly. This avoids any future breakage if the key combination is changed again.
This commit is contained in:
parent
b7192731b9
commit
dc0c7bce4c
@ -144,8 +144,9 @@ bool DINGUXSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) {
|
||||
|
||||
return true;
|
||||
} else if (ev.key.keysym.sym == BUT_SELECT) { // virtual keyboard
|
||||
ev.key.keysym.sym = SDLK_F7;
|
||||
|
||||
#ifdef ENABLE_VKEYBD
|
||||
event.type = Common::EVENT_VIRTUAL_KEYBOARD;
|
||||
#endif
|
||||
} else if (ev.key.keysym.sym == BUT_START) { // F5, menu in some games
|
||||
ev.key.keysym.sym = SDLK_F5;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user