feat: update
This commit is contained in:
@@ -317,16 +317,11 @@ func is_controller_button_used(button_index: int) -> String:
|
||||
return ""
|
||||
|
||||
func get_control_keycode(action_name: String) -> int:
|
||||
# Map friendly names to their internal settings.controls keys
|
||||
var mapped_name = action_name
|
||||
if action_name == "tekton_grab":
|
||||
mapped_name = "action_grab_tekton"
|
||||
elif action_name == "attack_mode":
|
||||
mapped_name = "action_knock_tekton"
|
||||
elif action_name == "grab":
|
||||
mapped_name = "action_grab"
|
||||
|
||||
return settings.controls.get(mapped_name, -1)
|
||||
# settings.controls stores keys by the same name callers pass in
|
||||
# (e.g. "tekton_grab", "attack_mode", "grab"). The InputMap action name
|
||||
# (e.g. "action_grab_tekton") is a separate concept handled by
|
||||
# apply_control_settings(). Do NOT remap here.
|
||||
return settings.controls.get(action_name, -1)
|
||||
|
||||
func get_control_text(action_name: String) -> String:
|
||||
var code = get_control_keycode(action_name)
|
||||
|
||||
Reference in New Issue
Block a user