added first theme progress and switched all files to use static typing

This commit is contained in:
Luca 2024-10-10 15:26:56 +02:00
parent c9458f3627
commit b5ace17da9
2665 changed files with 50249 additions and 476 deletions

View file

@ -26,13 +26,13 @@ func _gui_input(event: InputEvent) -> void:
if pressed and event is InputEventScreenDrag:
delta_position = clamp(previous_position - event.position, Vector2(-10, -10), Vector2(10, 10))
# finally update the previous position
previous_position = event.position
func simulate_joystick_motion(axis: int, value: float, device_id: int = 0) -> void:
var joystick_event = InputEventJoypadMotion.new()
joystick_event.device = device_id
func simulate_joystick_motion(axis: JoyAxis, value: float, device_id: int = 0) -> void:
var joystick_event: InputEventJoypadMotion = InputEventJoypadMotion.new()
joystick_event.device = device_id
joystick_event.axis = axis # Axis index (e.g., 0 for X-axis, 1 for Y-axis)
joystick_event.axis_value = value # Value of the axis, typically between -1 and 1