mcunha-br / virtual_joystick_godot4

MIT License
20 stars 2 forks source link

New signal for pressed, change sprite when pressed, new modes #2

Closed lanalancia closed 12 months ago

lanalancia commented 12 months ago

1) signal analogic_just_pressed Triggers at the moment user touches the joystick

2) @export var normalized: bool = true If true: the output length equals to 1 (old behaviour) if false: the output length equals from 0 to 1

3) @export var zero_at_touch: bool = false if false: joystick stays in place (old behaviour) if true: joystick changes position at the place where first touch detected. With this option turned on the motion starts with 0

4) A different sprite for pressed state, line 91

5) minor adjustments line 47: joystick starts at the centre of a border sprite line 56: i increased speed for a joystick return and forgor 💀