Update explanation theory of joystick control authored by Jeffrey George Fisher's avatar Jeffrey George Fisher
...@@ -26,7 +26,7 @@ The `SDL` library returns joystick axes with the C type `int16_t`, which is a si ...@@ -26,7 +26,7 @@ The `SDL` library returns joystick axes with the C type `int16_t`, which is a si
We need to map that onto the range $[-100, 100]$, representing percentage of thrust and direction of thrust. We need to map that onto the range $[-100, 100]$, representing percentage of thrust and direction of thrust.
Here's some example code along with an explanation for doing this linear transformation. I recommend you plug the function into a graphing tool like [Desmos](https://www.desmos.com/calculator) to see understand how it works. [Here's some example code](https://stackoverflow.com/a/5295202) along with an explanation for doing this linear transformation. I recommend you plug the function into a graphing tool like [Desmos](https://www.desmos.com/calculator) to see understand how it works.
## Arcade control ## Arcade control
... ...
......