psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
_pad_data Struct Reference

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...
 
   }  
 
};  
 

Detailed Description

Pad data data structure. All 1-bit button fields are zero when inctive, and 1 when active.

Definition at line 91 of file pad.h.

Field Documentation

◆ [union]

union { ... } _pad_data

◆ ANA_L_H

unsigned int _pad_data::ANA_L_H

left analog nub horizontal position (0x0000 - 0x00FF)

Definition at line 130 of file pad.h.

◆ ANA_L_V

unsigned int _pad_data::ANA_L_V

left analog nub vertical position (0x0000 - 0x00FF)

Definition at line 132 of file pad.h.

◆ ANA_R_H

unsigned int _pad_data::ANA_R_H

right analog nub horizontal position (0x0000 - 0x00FF)

Definition at line 126 of file pad.h.

◆ ANA_R_V

unsigned int _pad_data::ANA_R_V

right analog nub vertical position (0x0000 - 0x00FF)

Definition at line 128 of file pad.h.

◆ BTN_BDCODE

unsigned int _pad_data::BTN_BDCODE

BD remote len information.

0x0000 - 0xffff

Definition at line 175 of file pad.h.

◆ BTN_BDLEN

unsigned int _pad_data::BTN_BDLEN

Definition at line 173 of file pad.h.

◆ BTN_CIRCLE

unsigned int _pad_data::BTN_CIRCLE

circle button

Definition at line 116 of file pad.h.

◆ BTN_CROSS

unsigned int _pad_data::BTN_CROSS

cross button

Definition at line 115 of file pad.h.

◆ BTN_DOWN

unsigned int _pad_data::BTN_DOWN

down button

Definition at line 105 of file pad.h.

◆ BTN_L1

unsigned int _pad_data::BTN_L1

L1 button.

Definition at line 119 of file pad.h.

◆ BTN_L2

unsigned int _pad_data::BTN_L2

L2 button.

Definition at line 121 of file pad.h.

◆ BTN_L3

unsigned int _pad_data::BTN_L3

L3 button.

Definition at line 110 of file pad.h.

◆ BTN_LEFT

unsigned int _pad_data::BTN_LEFT

left button

Definition at line 104 of file pad.h.

◆ BTN_R1

unsigned int _pad_data::BTN_R1

R1 button.

Definition at line 118 of file pad.h.

◆ BTN_R2

unsigned int _pad_data::BTN_R2

R2 button.

Definition at line 120 of file pad.h.

◆ BTN_R3

unsigned int _pad_data::BTN_R3

R3 button.

Definition at line 109 of file pad.h.

◆ BTN_RIGHT

unsigned int _pad_data::BTN_RIGHT

right button

Definition at line 106 of file pad.h.

◆ BTN_SELECT

unsigned int _pad_data::BTN_SELECT

select button

Definition at line 111 of file pad.h.

◆ BTN_SQUARE

unsigned int _pad_data::BTN_SQUARE

square button

Definition at line 114 of file pad.h.

◆ BTN_START

unsigned int _pad_data::BTN_START

start button

Definition at line 108 of file pad.h.

◆ BTN_TRIANGLE

unsigned int _pad_data::BTN_TRIANGLE

triangle button

Definition at line 117 of file pad.h.

◆ BTN_UP

unsigned int _pad_data::BTN_UP

up button

Definition at line 107 of file pad.h.

◆ button

u16 _pad_data::button[(64)]

array of button values

Definition at line 95 of file pad.h.

◆ halflen

unsigned int _pad_data::halflen

len/2

Definition at line 100 of file pad.h.

◆ int

unsigned _pad_data::int

reserved

Definition at line 98 of file pad.h.

◆ len

s32 _pad_data::len

structure length

Definition at line 93 of file pad.h.

◆ PRE_CIRCLE

unsigned int _pad_data::PRE_CIRCLE

circle button pressure information (0x0000 - 0x00FF)

Definition at line 147 of file pad.h.

◆ PRE_CROSS

unsigned int _pad_data::PRE_CROSS

cross button pressure information (0x0000 - 0x00FF)

Definition at line 149 of file pad.h.

◆ PRE_DOWN

unsigned int _pad_data::PRE_DOWN

down button pressure information (0x0000 - 0x00FF)

Definition at line 143 of file pad.h.

◆ PRE_L1

unsigned int _pad_data::PRE_L1

L1 button pressure information (0x0000 - 0x00FF)

Definition at line 153 of file pad.h.

◆ PRE_L2

unsigned int _pad_data::PRE_L2

L2 button pressure information (0x0000 - 0x00FF)

Definition at line 157 of file pad.h.

◆ PRE_LEFT

unsigned int _pad_data::PRE_LEFT

left button pressure information (0x0000 - 0x00FF)

Definition at line 139 of file pad.h.

◆ PRE_R1

unsigned int _pad_data::PRE_R1

R1 button pressure information (0x0000 - 0x00FF)

Definition at line 155 of file pad.h.

◆ PRE_R2

unsigned int _pad_data::PRE_R2

R2 button pressure information (0x0000 - 0x00FF)

Definition at line 159 of file pad.h.

◆ PRE_RIGHT

unsigned int _pad_data::PRE_RIGHT

right button pressure information (0x0000 - 0x00FF)

Definition at line 137 of file pad.h.

◆ PRE_SQUARE

unsigned int _pad_data::PRE_SQUARE

square button pressure information (0x0000 - 0x00FF)

Definition at line 151 of file pad.h.

◆ PRE_TRIANGLE

unsigned int _pad_data::PRE_TRIANGLE

triangle button pressure information (0x0000 - 0x00FF)

Definition at line 145 of file pad.h.

◆ PRE_UP

unsigned int _pad_data::PRE_UP

up button pressure information (0x0000 - 0x00FF)

Definition at line 141 of file pad.h.

◆ reserved

u8 _pad_data::reserved[76]

BD remote code information see ioPadBdCode for values.

reserved

Definition at line 178 of file pad.h.

◆ SENSOR_G

unsigned int _pad_data::SENSOR_G

G sensor information (0x0000 - 0x03FF)

Definition at line 170 of file pad.h.

◆ SENSOR_X

unsigned int _pad_data::SENSOR_X

X sensor information (0x0000 - 0x03FF)

Definition at line 164 of file pad.h.

◆ SENSOR_Y

unsigned int _pad_data::SENSOR_Y

Y sensor information (0x0000 - 0x03FF)

Definition at line 166 of file pad.h.

◆ SENSOR_Z

unsigned int _pad_data::SENSOR_Z

Z sensor information (0x0000 - 0x03FF)

Definition at line 168 of file pad.h.

◆ seven

unsigned int _pad_data::seven

always 0x7

Definition at line 99 of file pad.h.

◆ zeroes

u16 _pad_data::zeroes

zero bits

Definition at line 97 of file pad.h.


The documentation for this struct was generated from the following file: