idk richtext stuff

This commit is contained in:
2025-09-15 00:40:58 -05:00
parent 39aca9aa3f
commit 2b58781907
44 changed files with 335 additions and 1009 deletions

View File

@@ -1,8 +1,8 @@
extends Node
extends RefCounted
class_name ControllerMapper
func _convert_joypad_path(path: String, device: int, fallback: ControllerSettings.Devices) -> String:
match _get_joypad_type(device, fallback):
func _convert_joypad_path(path: String, device: int, fallback: ControllerSettings.Devices, force_controller_icon_style = ControllerSettings.Devices.NONE) -> String:
match _get_joypad_type(device, fallback, force_controller_icon_style):
ControllerSettings.Devices.LUNA:
return _convert_joypad_to_luna(path)
ControllerSettings.Devices.PS3:
@@ -32,7 +32,9 @@ func _convert_joypad_path(path: String, device: int, fallback: ControllerSetting
_:
return ""
func _get_joypad_type(device, fallback):
func _get_joypad_type(device, fallback, force_controller_icon_style):
if force_controller_icon_style != ControllerSettings.Devices.NONE:
return force_controller_icon_style
var available = Input.get_connected_joypads()
if available.is_empty():
return fallback
@@ -264,7 +266,7 @@ func _convert_joypad_to_steamdeck(path: String):
"rt":
return path.replace("/rt", "/r2")
"select":
return path.replace("/select", "/square")
return path.replace("/select", "/inventory")
"start":
return path.replace("/start", "/menu")
"home":