mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
SDL: Ignore unused key modifiers
This commit is contained in:
parent
445bd02cad
commit
eb6b490c76
|
@ -472,8 +472,7 @@ void SDLHostInterface::HandleSDLEvent(const SDL_Event* event)
|
|||
{
|
||||
if (!ImGui::GetIO().WantCaptureKeyboard && event->key.repeat == 0)
|
||||
{
|
||||
const HostKeyCode code = static_cast<HostKeyCode>(static_cast<u32>(event->key.keysym.sym) |
|
||||
static_cast<u32>(event->key.keysym.mod) << 16);
|
||||
const HostKeyCode code = static_cast<HostKeyCode>(SDLKeyNames::KeyEventToInt(event));
|
||||
const bool pressed = (event->type == SDL_KEYDOWN);
|
||||
HandleHostKeyEvent(code, pressed);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue