gd: added input addon
This commit is contained in:
13
addons/guide/inputs/guide_input_joy_base.gd
Normal file
13
addons/guide/inputs/guide_input_joy_base.gd
Normal file
@ -0,0 +1,13 @@
|
||||
## 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()
|
||||
|
Reference in New Issue
Block a user