PSXSDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Fields
psx_pad_state::extra::analogJoy Struct Reference

Data for analog joysticks. More...

#include <psxpad.h>

Data Fields

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.
 

Detailed Description

Data for analog joysticks.

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".

Field Documentation

signed char psx_pad_state::extra::analogJoy::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::analogJoy::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: