mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
[Windows] Fix WM_CHAR processing code using Unicode char instead of Virtual key.
This commit is contained in:
parent
006e345695
commit
54adfb6dfd
@ -3352,7 +3352,7 @@ void DisplayServerWindows::_process_key_events() {
|
||||
k->set_ctrl_pressed(ke.control);
|
||||
k->set_meta_pressed(ke.meta);
|
||||
k->set_pressed(true);
|
||||
k->set_keycode((Key)KeyMappingWindows::get_keysym(ke.wParam));
|
||||
k->set_keycode((Key)KeyMappingWindows::get_keysym(MapVirtualKey((ke.lParam >> 16) & 0xFF, MAPVK_VSC_TO_VK)));
|
||||
k->set_physical_keycode((Key)(KeyMappingWindows::get_scansym((ke.lParam >> 16) & 0xFF, ke.lParam & (1 << 24))));
|
||||
k->set_unicode(unicode);
|
||||
if (k->get_unicode() && gr_mem) {
|
||||
|
Loading…
Reference in New Issue
Block a user