mirror of
https://github.com/Relintai/broken_seals_2ds.git
synced 2024-11-22 03:07:17 +01:00
BSInputEventKey's functionality have been merged into the engine.
This commit is contained in:
parent
4d8b3e1e73
commit
51eb0df0ae
@ -56,22 +56,6 @@ var _settings : Dictionary = {
|
||||
|
||||
func _ready():
|
||||
load_settings()
|
||||
|
||||
var actions : Array = InputMap.get_actions()
|
||||
|
||||
for action in actions:
|
||||
var acts : Array = InputMap.get_action_list(action)
|
||||
|
||||
for i in range(len(acts)):
|
||||
var a = acts[i]
|
||||
if a is InputEventKey:
|
||||
var nie : BSInputEventKey = BSInputEventKey.new()
|
||||
nie.from_input_event_key(a as InputEventKey)
|
||||
acts[i] = nie
|
||||
|
||||
InputMap.action_erase_event(action, a)
|
||||
InputMap.action_add_event(action, nie)
|
||||
|
||||
set_stretch()
|
||||
setup_window()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user