Files
MovementTests/addons/guide/inputs/guide_input_joy_base.gd
2025-05-27 19:20:46 +02:00

14 lines
283 B
GDScript

## Base class for joystick inputs.
@tool
class_name GUIDEInputJoyBase
extends GUIDEInput
## The index of the connected joy pad to check. If -1 checks all joypads.
@export var joy_index:int = -1:
set(value):
if value == joy_index:
return
joy_index = value
emit_changed()