add extra check for 'KEY_NONE' in game key input

This commit is contained in:
Teatov 2025-08-02 18:23:10 +10:00
parent 0376dd6450
commit c058c274ac

View File

@ -113,6 +113,9 @@ func _unhandled_input(event: InputEvent) -> void:
if (
event_key.physical_keycode != props.physical_keycode
or event_key.echo
or (
event_key.physical_keycode == KEY_NONE or props.physical_keycode == KEY_NONE
)
or (
event_key.location != KEY_LOCATION_UNSPECIFIED
and props.location != KEY_LOCATION_UNSPECIFIED