Fix android build.

This commit is contained in:
Relintai 2022-11-30 19:33:24 +01:00
parent cdb8f725ea
commit 8eb69b8052

View File

@ -61,10 +61,10 @@ void AndroidInputHandler::process_key_event(int p_scancode, int p_physical_scanc
Ref<InputEventKey> ev; Ref<InputEventKey> ev;
ev.instance(); ev.instance();
unsigned int physical_scancode = godot_code_from_android_code(p_physical_scancode); unsigned int physical_scancode = pandemonium_code_from_android_code(p_physical_scancode);
unsigned int scancode = physical_scancode; unsigned int scancode = physical_scancode;
if (p_scancode != 0) { if (p_scancode != 0) {
scancode = godot_code_from_unicode(p_scancode); scancode = pandemonium_code_from_unicode(p_scancode);
} }
switch (physical_scancode) { switch (physical_scancode) {