psl1ght
A free SDK for Sony's PS3 console
Data Fields
_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 [MAX_PAD_CODES]
 array of button values
 
   struct {
      u16   zeroes
 zero bits
 
      unsigned   int: 8
 reserved
 
      unsigned int   seven: 4
 always 0x7
 
      unsigned int   halflen: 4
 len/2
 
      unsigned int   BTN_LEFT: 1
 left button
 
      unsigned int   BTN_DOWN: 1
 down button
 
      unsigned int   BTN_RIGHT: 1
 right button
 
      unsigned int   BTN_UP: 1
 up button
 
      unsigned int   BTN_START: 1
 start button
 
      unsigned int   BTN_R3: 1
 R3 button.
 
      unsigned int   BTN_L3: 1
 L3 button.
 
      unsigned int   BTN_SELECT: 1
 select button
 
      unsigned int   BTN_SQUARE: 1
 square button
 
      unsigned int   BTN_CROSS: 1
 cross button
 
      unsigned int   BTN_CIRCLE: 1
 circle button
 
      unsigned int   BTN_TRIANGLE: 1
 triangle button
 
      unsigned int   BTN_R1: 1
 R1 button.
 
      unsigned int   BTN_L1: 1
 L1 button.
 
      unsigned int   BTN_R2: 1
 R2 button.
 
      unsigned int   BTN_L2: 1
 L2 button.
 
      unsigned int   ANA_R_H: 16
 right analog nub horizontal position (0x0000 - 0x00FF)
 
      unsigned int   ANA_R_V: 16
 right analog nub vertical position (0x0000 - 0x00FF)
 
      unsigned int   ANA_L_H: 16
 left analog nub horizontal position (0x0000 - 0x00FF)
 
      unsigned int   ANA_L_V: 16
 left analog nub vertical position (0x0000 - 0x00FF)
 
      unsigned int   PRE_RIGHT: 16
 right button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_LEFT: 16
 left button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_UP: 16
 up button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_DOWN: 16
 down button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_TRIANGLE: 16
 triangle button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_CIRCLE: 16
 circle button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_CROSS: 16
 cross button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_SQUARE: 16
 square button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_L1: 16
 L1 button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_R1: 16
 R1 button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_L2: 16
 L2 button pressure information (0x0000 - 0x00FF)
 
      unsigned int   PRE_R2: 16
 R2 button pressure information (0x0000 - 0x00FF)
 
      unsigned int   SENSOR_X: 16
 X sensor information (0x0000 - 0x03FF)
 
      unsigned int   SENSOR_Y: 16
 Y sensor information (0x0000 - 0x03FF)
 
      unsigned int   SENSOR_Z: 16
 Z sensor information (0x0000 - 0x03FF)
 
      unsigned int   SENSOR_G: 16
 G sensor information (0x0000 - 0x03FF)
 
      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.

Field Documentation

◆ BTN_BDCODE

unsigned int _pad_data::BTN_BDCODE

BD remote len information.

0x0000 - 0xffff

◆ reserved

u8 _pad_data::reserved[76]

BD remote code information see ioPadBdCode for values.

reserved


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