Skip to content

Commit

Permalink
Merge pull request #48969 from bruvzg/uwp_phys_keys_fix
Browse files Browse the repository at this point in the history
[UWP] Add missing `get_scansym` argument.
  • Loading branch information
akien-mga authored May 22, 2021
2 parents 1cc8cc9 + 494c54b commit 78861fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/uwp/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void App::key_event(Windows::UI::Core::CoreWindow ^ sender, bool p_pressed, Wind
ke.type = OS_UWP::KeyEvent::MessageType::KEY_EVENT_MESSAGE;
ke.unicode = 0;
ke.keycode = KeyMappingWindows::get_keysym((unsigned int)key_args->VirtualKey);
ke.physical_keycode = KeyMappingWindows::get_scansym((unsigned int)key_args->KeyStatus.ScanCode);
ke.physical_keycode = KeyMappingWindows::get_scansym((unsigned int)key_args->KeyStatus.ScanCode, key_args->KeyStatus.IsExtendedKey);
ke.echo = (!p_pressed && !key_args->KeyStatus.IsKeyReleased) || (p_pressed && key_args->KeyStatus.WasKeyDown);

} else {
Expand Down

0 comments on commit 78861fd

Please sign in to comment.