[UWP] Add missing get_scansym argument.

(cherry picked from commit 494c54b98c)
This commit is contained in:
bruvzg 2021-05-22 16:39:31 +03:00 committed by Rémi Verschelde
parent 1d06a7edac
commit df532ff45c
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -393,7 +393,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.scancode = KeyMappingWindows::get_keysym((unsigned int)key_args->VirtualKey);
ke.physical_scancode = KeyMappingWindows::get_scansym((unsigned int)key_args->KeyStatus.ScanCode);
ke.physical_scancode = 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 {