Fix for 3 keys reset from console mode (merged from Chips)
This commit is contained in:
parent
603c49a05b
commit
bd6abca197
1 changed files with 12 additions and 0 deletions
|
@ -602,12 +602,24 @@ void moveVertical(int value)
|
|||
changed_prefs.pandora_vertical_offset = 16;
|
||||
}
|
||||
|
||||
extern char keyboard_type;
|
||||
|
||||
void gui_handle_events(void)
|
||||
{
|
||||
Uint8 *keystate = SDL_GetKeyState(NULL);
|
||||
|
||||
if (keystate[SDLK_LCTRL] && keystate[SDLK_LSUPER] && (keystate[SDLK_RSUPER] || keystate[SDLK_MENU]))
|
||||
uae_reset(0, 1);
|
||||
// Strangely in FBCON left window is seen as left alt ??
|
||||
if (keyboard_type == 2) // KEYCODE_FBCON
|
||||
{
|
||||
if(keystate[SDLK_LCTRL] && (keystate[SDLK_LSUPER] || keystate[SDLK_LALT]) && (keystate[SDLK_RSUPER] || keystate[SDLK_MENU])
|
||||
uae_reset(0,1);
|
||||
} else
|
||||
{
|
||||
if(keystate[SDLK_LCTRL] && keystate[SDLK_LSUPER] && keystate[SDLK_RSUPER] || keystate[SDLK_MENU])
|
||||
uae_reset(0,1);
|
||||
}
|
||||
}
|
||||
|
||||
void gui_disk_image_change(int unitnum, const char *name, bool writeprotected)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue