mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-01-07 08:01:16 +00:00
Prevent alt+enter from opening chat
This commit is contained in:
parent
3e9ceb53b4
commit
33579b1a65
1 changed files with 4 additions and 3 deletions
|
@ -176,15 +176,16 @@ static void gfx_sdl_get_dimensions(uint32_t *width, uint32_t *height) {
|
|||
}
|
||||
|
||||
static void gfx_sdl_onkeydown(int scancode) {
|
||||
if (kb_key_down)
|
||||
kb_key_down(translate_sdl_scancode(scancode));
|
||||
|
||||
const Uint8 *state = SDL_GetKeyboardState(NULL);
|
||||
|
||||
if (state[SDL_SCANCODE_LALT] && state[SDL_SCANCODE_RETURN]) {
|
||||
configWindow.fullscreen = !configWindow.fullscreen;
|
||||
configWindow.settings_changed = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (kb_key_down)
|
||||
kb_key_down(translate_sdl_scancode(scancode));
|
||||
}
|
||||
|
||||
static void gfx_sdl_onkeyup(int scancode) {
|
||||
|
|
Loading…
Reference in a new issue