summaryrefslogtreecommitdiff
path: root/scene/2d/skeleton_2d.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-12-27 14:12:41 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-01-18 12:30:38 +0100
commita1533f2c447216cbc15750782c3438eab671834f (patch)
tree5827868a2eb2efa7355e18ff0523055e3d974e4b /scene/2d/skeleton_2d.cpp
parent16fa4201f1c2f3b46c63e6d9933333e97354c753 (diff)
Better gamepad axis event injection.
In the core input handling code we have checks to make sure that if axis rapidly change sign we inject mid-points to release any pending inputmap action. The function though, did not correctly insert the mid-point causing dpads mapped to an axis that behaves like tri-state buttons (-1,0,1) to not be released correctly. This commit fixes that by including in the check the case where the axis swtiches from abs(1) to 0.
Diffstat (limited to 'scene/2d/skeleton_2d.cpp')
0 files changed, 0 insertions, 0 deletions