gd: added input addon
This commit is contained in:
15
addons/guide/guide_reset.gd
Normal file
15
addons/guide/guide_reset.gd
Normal file
@ -0,0 +1,15 @@
|
||||
extends Node
|
||||
|
||||
|
||||
var _inputs_to_reset:Array[GUIDEInput] = []
|
||||
|
||||
func _enter_tree() -> void:
|
||||
# this should run at the end of the frame, so we put in a low priority (= high number)
|
||||
process_priority = 10000000
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
for input:GUIDEInput in _inputs_to_reset:
|
||||
input._reset()
|
||||
|
||||
GUIDE._input_state._reset()
|
Reference in New Issue
Block a user