summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2026-02-08 11:07:39 -0500
committer arbee <rb6502@users.noreply.github.com>2026-02-08 11:07:39 -0500
commit745a4b9191031d6c9336d23110fcb03e7c6bb9e1 (patch)
tree7424a2093e7e16b5a72863ca06f6595b550efc3d /src/osd
parente8cf4e4f011e12b76e5855be5bd4ae607e96f45e (diff)
sdl3: Fix key up not being sent on some systems. [R. Belmont]
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/modules/input/input_sdl3.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/osd/modules/input/input_sdl3.cpp b/src/osd/modules/input/input_sdl3.cpp
index 70658068fa7..3c53b1e4e6b 100644
--- a/src/osd/modules/input/input_sdl3.cpp
+++ b/src/osd/modules/input/input_sdl3.cpp
@@ -2,13 +2,10 @@
// copyright-holders:Olivier Galibert, R. Belmont, Brad Hughes, Vas Crabb
//============================================================
//
-// input_sdl.cpp - SDL 3 implementation of MAME input routines
+// input_sdl3.cpp - SDL 3 implementation of MAME input routines
//
// SDLMAME by Olivier Galibert and R. Belmont
//
-// SixAxis info: left analog is axes 0 & 1, right analog is axes 2 & 3,
-// analog L2 is axis 12 and analog L3 is axis 13
-//
//============================================================
#include "input_module.h"
@@ -577,7 +574,7 @@ public:
switch (event.type)
{
case SDL_EVENT_KEY_DOWN:
- // TODO: when we add proper multi-keyboard support
+ // TODO: when we add proper multi-keyboard support. Also below for the KEY_UP case.
if (1) // event.key.which == m_keyboard_id)
{
if (event.key.scancode == SDL_SCANCODE_CAPSLOCK)
@@ -588,7 +585,7 @@ public:
break;
case SDL_EVENT_KEY_UP:
- if (event.key.which == m_keyboard_id)
+ if (1) // event.key.which == m_keyboard_id)
{
#ifdef SDL_PLATFORM_APPLE
if (event.key.scancode == SDL_SCANCODE_CAPSLOCK)