Skip to content

Commit d7a758a

Browse files
committed
Fix markup in old axis handling system blog post
Non-breakable spaces were used, breaking the markdown syntax for headings.
1 parent 1cf8a72 commit d7a758a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

collections/_article/handling-axis-godot.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Up to now, actions were just binary. This means they could be either pressed or
3030

3131
The examples above show how limited gamepad mapping is: When using an analog axis, a bit more information than just "pressed" or "not pressed" is needed. These kind of APIs allow reading analog values, which map directly to how much the physical controller is bent on a given direction.
3232

33-
## Adding analog values to actions
33+
## Adding analog values to actions
3434

3535
After many months of discussion on Github, and almost going with a scheme more similar to other engines, we finally settled on a simpler solution: An analog value was added to every action (along with the existing boolean one).
3636

@@ -58,7 +58,8 @@ To map a single axis, the input mapping system will require two different action
5858
```
5959
var horizontal = Input.get_action_strength("right") - Input.get_action_strength("left")
6060
```
61-
## Deadzones
61+
62+
## Deadzones
6263

6364
Sometimes, when using analog axes, a threshold is required for activating an action. When moving a character left of right, this threshold is usually small. When moving through UI menu options a larger one is desired.
6465

@@ -68,10 +69,9 @@ The relationship between *deadzone*, *strength* and *pressed* parameters is bett
6869

6970
![](/storage/app/media/devlog/input_mapping/deadzone.png)
7071

71-
7272
Some modern devices also have analog face buttons (the strength of how much they are pressed is recorded), this system also covers this use case perfectly (InputEventButton still needs to implement this feature though).
7373

74-
## Advantages of the *strength* system
74+
## Advantages of the *strength* system
7575

7676
In other game engines, analog input is handled via "axis mapping" systems. These systems allow defining a set of named axes (like "horizontal_motion"), and map them to actual analog axes from joypads.
7777

0 commit comments

Comments
 (0)