Update both joystick port and store paddles information
| inline bool Paddle_IsConnected( |
| ) |
Check if a paddle is connected to the given port
| port u8 | Index of the port to check (0: Port A, 1: Port B) |
TRUE if a paddle is connected to that port
| inline u16 Paddle_GetAngle( |
| ) |
Get the rotation angle of a paddle on the given port
| port u8 | Index of the port to check (0: Port A, 1: Port B) |
Paddle angle (theorical value goes from 0 to 510, but valid range is around 110 to 380)
| inline bool Paddle_IsButtonPressed( |
| ) |
Check if the given paddle's button is pressed
| port u8 | Index of the port to check (0: Port A, 1: Port B) |
TRUE if the given paddle's button is pressed
| inline void Paddle_SetCalibration( |
| ) |
Calibrate the given paddle
| port u8 | Index of the port to check (0: Port A, 1: Port B) |
| min u16 | Minimum recoreded value |
| max u16 | Maximum recoreded value |
| u8 Paddle_GetCalibratedAngle( |
| ) |
Get the callibrated rotation angle of a paddle on the given port
| port u8 | Index of the port to check (0: Port A, 1: Port B) |
Paddle angle (from 0 to 255)