Data for analog joypads (controller).
More...
#include <psxpad.h>
|
signed char | x [2] |
| X coordinates for the left analog stick and the right analog stick.
|
|
signed char | y [2] |
| Y coordinates for the left analog stick and the right analog stick.
|
|
Data for analog joypads (controller).
- Attention
- Due to the poor calibration of the analog sticks, it is recommended that you do not assume "left" for X values lower than zero and "right" for X values higher than zero.
-
It is recommended to pick a value, for instance 64, and assume "left" for values lower than -64, "right" for values higher than 64, and no movement for values between -64 and 64.
-
The same is valid for Y values, "up" and "down".
signed char psx_pad_state::extra::analogPad::x[2] |
X coordinates for the left analog stick and the right analog stick.
- Value
- Totally left: -128, totally right: 127
signed char psx_pad_state::extra::analogPad::y[2] |
Y coordinates for the left analog stick and the right analog stick.
- Value
- Totally up: -128, totally down: 127
The documentation for this struct was generated from the following file: