Prepare Android controller and export support

This commit is contained in:
Alexander Sellite 2026-08-03 02:14:38 -04:00
parent c84f305c34
commit d24f2f50c0
9 changed files with 192 additions and 11 deletions

View file

@ -34,12 +34,12 @@ func _ready() -> void:
func handle_input(event: InputEvent, can_open: bool) -> bool:
if not event.is_action("open_emotes"):
return false
var key_event: InputEventKey = event as InputEventKey
if key_event == null or key_event.echo:
if key_event != null and key_event.echo:
return false
if key_event.physical_keycode != KEY_C:
return false
if key_event.pressed:
if event.is_pressed():
if _is_open or not can_open:
return _is_open
open_menu()