Commit 9e39788
authored
[rcore] fix gamepad axis movement and its automation event recording (#4184)
* [rcore] fix gamepad axis movement and its automation event recording
This commit fixes 2 issues:
- Automation events aren't recorded for negative axis movements on
gamepads (e.g. stick going left/up)
- 'GetGamepadAxisMovement' drift check isn't working correctly for
triggers. Axis values between [-0.1, 0.1] are clamped to 0.0
Behaviour change:
- 'GetGamepadAxisMovement' returns default value for each axis, even
if gamepad isn't attached.
* [rcore] inline body of 'GetGamepadAxisMovementDefault' and remove it1 parent e5a1fc4 commit 9e39788
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2952 | 2952 | | |
2953 | 2953 | | |
2954 | 2954 | | |
2955 | | - | |
| 2955 | + | |
2956 | 2956 | | |
2957 | | - | |
2958 | | - | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
2959 | 2963 | | |
2960 | 2964 | | |
2961 | 2965 | | |
| |||
3599 | 3603 | | |
3600 | 3604 | | |
3601 | 3605 | | |
3602 | | - | |
| 3606 | + | |
| 3607 | + | |
3603 | 3608 | | |
3604 | 3609 | | |
3605 | 3610 | | |
| |||
0 commit comments