Files
EGJ25/addons/guide/inputs/guide_input_joy_base.gd
minimata 9a79715e47
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m16s
feat: made sure the aspect ration fit a pixel art game and added useful addons
2025-06-27 15:19:12 +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()