Make menus more controller friendly
parent
2b36af882e
commit
323815ea73
|
@ -21,6 +21,7 @@ onready var borderless_cb: CheckBox = $MarginContainer/VSplitContainer/CenterCon
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
|
auto_clutch_cb.grab_focus()
|
||||||
master_slider.value = db2linear(AudioServer.get_bus_volume_db(master_bus))
|
master_slider.value = db2linear(AudioServer.get_bus_volume_db(master_bus))
|
||||||
sound_slider.value = db2linear(AudioServer.get_bus_volume_db(sound_bus))
|
sound_slider.value = db2linear(AudioServer.get_bus_volume_db(sound_bus))
|
||||||
music_slider.value = db2linear(AudioServer.get_bus_volume_db(music_bus))
|
music_slider.value = db2linear(AudioServer.get_bus_volume_db(music_bus))
|
||||||
|
|
|
@ -57,6 +57,13 @@ theme/use_hidpi=true
|
||||||
|
|
||||||
[input]
|
[input]
|
||||||
|
|
||||||
|
ui_cancel={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":1,"pressure":0.0,"pressed":false,"script":null)
|
||||||
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
throttle={
|
throttle={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
|
|
Loading…
Reference in New Issue