https://github.com/theo-brown/joystick
Code for interfacing with a gamepad/joystick to get axis values
https://github.com/theo-brown/joystick
Last synced: 3 months ago
JSON representation
Code for interfacing with a gamepad/joystick to get axis values
- Host: GitHub
- URL: https://github.com/theo-brown/joystick
- Owner: theo-brown
- Created: 2014-08-30T08:26:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-27T09:43:09.000Z (over 10 years ago)
- Last Synced: 2024-12-06T21:06:39.679Z (6 months ago)
- Language: C
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
joystick
========Code for interfacing with a gamepad/joystick to get axis values.
Returns values in the range -32767 - +32767
In the format NxV where N is the number of the joystick (numbers in diagram below) and V is the value of the joystick's position, positive or negative (as in diagram).-1 -2
^ ^
| |
-0 <--x--> +0 -3 <--x--> +3
| |
v v
+1 +2
L R