add deadzone setting

This commit is contained in:
2025-02-27 22:05:40 +10:00
parent e73e2e9e06
commit fc5ab58571
3 changed files with 8 additions and 15 deletions

View File

@@ -64,18 +64,10 @@ const CONFIG_PATH := "user://settings.cfg"
@export_group("Controls")
@export_subgroup("KB & Mouse")
## rotation speed in degrees per pixel
@export var mouse_sensitivity: float = 0.5
@export var invert_mouse_horizontal: bool = false
@export var invert_mouse_vertical: bool = false
@export_subgroup("Controller")
## horizontal rotation speed in degrees per second
@export var controller_sensitivity_horizontal: float = 270
## vertical rotation speed in degrees per second
@export var controller_sensitivity_vertical: float = 120
@export var invert_controller_horizontal: bool = false
@export var invert_controller_vertical: bool = false
@export var movement_stick_deadzone: float = 0.5
@export var aiming_stick_deadzone: float = 0.5
var _default_values: Dictionary = {}