add extra check for 'KEY_NONE' in game key input
This commit is contained in:
parent
0376dd6450
commit
c058c274ac
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user