BSInputEventKey's functionality have been merged into the engine.

This commit is contained in:
Relintai 2023-10-08 20:45:03 +02:00
parent e0f8afc75a
commit 6009e332de

View File

@ -54,22 +54,6 @@ var _settings : Dictionary = {
func _ready(): func _ready():
load_settings() 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() set_stretch()
setup_window() setup_window()