|
psl1ght
A free SDK for Sony's PS3 console
|
Pad data data structure. All 1-bit button fields are zero when inctive, and 1 when active. More...
#include <pad.h>
Data Fields | ||
| s32 | len | |
| structure length | ||
| union { | ||
| u16 button [(64)] | ||
| array of button values More... | ||
| struct { | ||
| u16 zeroes | ||
| zero bits More... | ||
| unsigned int: 8 | ||
| reserved More... | ||
| unsigned int seven: 4 | ||
| always 0x7 More... | ||
| unsigned int halflen: 4 | ||
| len/2 More... | ||
| unsigned int BTN_LEFT: 1 | ||
| left button More... | ||
| unsigned int BTN_DOWN: 1 | ||
| down button More... | ||
| unsigned int BTN_RIGHT: 1 | ||
| right button More... | ||
| unsigned int BTN_UP: 1 | ||
| up button More... | ||
| unsigned int BTN_START: 1 | ||
| start button More... | ||
| unsigned int BTN_R3: 1 | ||
| R3 button. More... | ||
| unsigned int BTN_L3: 1 | ||
| L3 button. More... | ||
| unsigned int BTN_SELECT: 1 | ||
| select button More... | ||
| unsigned int BTN_SQUARE: 1 | ||
| square button More... | ||
| unsigned int BTN_CROSS: 1 | ||
| cross button More... | ||
| unsigned int BTN_CIRCLE: 1 | ||
| circle button More... | ||
| unsigned int BTN_TRIANGLE: 1 | ||
| triangle button More... | ||
| unsigned int BTN_R1: 1 | ||
| R1 button. More... | ||
| unsigned int BTN_L1: 1 | ||
| L1 button. More... | ||
| unsigned int BTN_R2: 1 | ||
| R2 button. More... | ||
| unsigned int BTN_L2: 1 | ||
| L2 button. More... | ||
| unsigned int ANA_R_H: 16 | ||
right analog nub horizontal position (0x0000 - 0x00FF) More... | ||
| unsigned int ANA_R_V: 16 | ||
right analog nub vertical position (0x0000 - 0x00FF) More... | ||
| unsigned int ANA_L_H: 16 | ||
left analog nub horizontal position (0x0000 - 0x00FF) More... | ||
| unsigned int ANA_L_V: 16 | ||
left analog nub vertical position (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_RIGHT: 16 | ||
right button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_LEFT: 16 | ||
left button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_UP: 16 | ||
up button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_DOWN: 16 | ||
down button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_TRIANGLE: 16 | ||
triangle button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_CIRCLE: 16 | ||
circle button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_CROSS: 16 | ||
cross button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_SQUARE: 16 | ||
square button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_L1: 16 | ||
L1 button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_R1: 16 | ||
R1 button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_L2: 16 | ||
L2 button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int PRE_R2: 16 | ||
R2 button pressure information (0x0000 - 0x00FF) More... | ||
| unsigned int SENSOR_X: 16 | ||
X sensor information (0x0000 - 0x03FF) More... | ||
| unsigned int SENSOR_Y: 16 | ||
Y sensor information (0x0000 - 0x03FF) More... | ||
| unsigned int SENSOR_Z: 16 | ||
Z sensor information (0x0000 - 0x03FF) More... | ||
| unsigned int SENSOR_G: 16 | ||
G sensor information (0x0000 - 0x03FF) More... | ||
| unsigned int BTN_BDLEN: 16 | ||
| unsigned int BTN_BDCODE: 16 | ||
| BD remote len information. More... | ||
| u8 reserved [76] | ||
| BD remote code information see ioPadBdCode for values. More... | ||
| } | ||
| }; | ||
Pad data data structure. All 1-bit button fields are zero when inctive, and 1 when active.
| union { ... } _pad_data |
| unsigned int _pad_data::ANA_L_H |
| unsigned int _pad_data::ANA_L_V |
| unsigned int _pad_data::ANA_R_H |
| unsigned int _pad_data::ANA_R_V |
| unsigned int _pad_data::BTN_BDCODE |
| unsigned int _pad_data::PRE_CIRCLE |
| unsigned int _pad_data::PRE_CROSS |
| unsigned int _pad_data::PRE_DOWN |
| unsigned int _pad_data::PRE_L1 |
| unsigned int _pad_data::PRE_L2 |
| unsigned int _pad_data::PRE_LEFT |
| unsigned int _pad_data::PRE_R1 |
| unsigned int _pad_data::PRE_R2 |
| unsigned int _pad_data::PRE_RIGHT |
| unsigned int _pad_data::PRE_SQUARE |
| unsigned int _pad_data::PRE_TRIANGLE |
| unsigned int _pad_data::PRE_UP |
| u8 _pad_data::reserved[76] |
| unsigned int _pad_data::SENSOR_G |
| unsigned int _pad_data::SENSOR_X |
| unsigned int _pad_data::SENSOR_Y |
| unsigned int _pad_data::SENSOR_Z |