I'm trying to map the buttons to values to make it easier to customize the controls in game.
But there are some things in Clickteam Fusion that i can't understand, and i want to understand how it works.

Example: to know if the player is holding or just pressed the direction i'm adding 0.1 to the direction value until it reaches (X.5).
It works fine with the values 4,5,6,7 and 8, But with the values 1,2 and 3 it stops at (X.4).

Attachment 11545

On top of that, If i use > and < instead of >= or <= it does't work right too. And only on that line.
what an i'm doing wrong?

--

And how the software read the event lines?
In the example bellow: "A Button" = Global Value "Press A" = Object Value.

Attachment 11546

On the first line, if the player press the button, the "Press A" value changes to 1
On the second, if the value is >=1 and <2 it Add 0.1.

But when i call an event using Press A=1 it does't work. When i call it with A=1.1 it works fine.
Why it can't read the first line fast enough, but can read the second line easily before it repeats?

Here is an .mfa example if someone can help-me understand what is wrong and how it works.
I'm using an generic USB Joystick, so i think it will be mapped wrong for other controllers. You can Remap on the global values.


Attachment 11547