psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
pad.h File Reference

PS3 pad/controller management. More...

#include <ppu-types.h>

Go to the source code of this file.

Data Structures

struct  _pad_info
 Pad info data structure (old format). More...
 
struct  _pad_info2
 Pad info data structure (new format). More...
 
struct  _pad_data
 Pad data data structure. All 1-bit button fields are zero when inctive, and 1 when active. More...
 
struct  _pad_capability_info
 Pad capability information data structure. All 1-bit values are 1 when the capability is present, 0 otherwise. More...
 
struct  _pad_act_param
 Pad action parameters data structure. More...
 
struct  _pad_periph_info
 Pad peripheral information data structure. More...
 
struct  _pad_periph_data
 Pad peripheral data data structure. More...
 

Macros

#define MAX_PADS   (127)
 
#define MAX_PAD_CODES   (64)
 
#define MAX_PORT_NUM   (7)
 
#define MAX_PAD_CAPABILITY_INFO   (32)
 
#define MAX_PAD_ACTUATOR   (2)
 
#define PAD_TYPE_STANDARD   (0)
 
#define PAD_TYPE_REMOTE   (4)
 
#define PAD_TYPE_LDD   (5)
 
#define PAD_PRESS_MODE_ON   (1)
 
#define PAD_PRESS_MODE_OFF   (0)
 
#define PAD_INFO_SUPPORTED_PRESS_MODE   (1)
 
#define PAD_SENSOR_MODE_ON   (1)
 
#define PAD_SENSOR_MODE_OFF   (0)
 
#define PAD_INFO_SUPPORTED_SENSOR_MODE   (1)
 
#define PAD_SETTINGS_PRESS_ON   (1<<1)
 
#define PAD_SETTINGS_PRESS_OFF   (0)
 
#define PAD_SETTINGS_SENSOR_ON   (1<<2)
 
#define PAD_SETTINGS_SENSOR_OFF   (0)
 
#define PAD_CTRL_LEFT   (1<<7)
 
#define PAD_CTRL_DOWN   (1<<6)
 
#define PAD_CTRL_RIGHT   (1<<5)
 
#define PAD_CTRL_UP   (1<<4)
 
#define PAD_CTRL_START   (1<<3)
 
#define PAD_CTRL_R3   (1<<2)
 
#define PAD_CTRL_L3   (1<<1)
 
#define PAD_CTRL_SELECT   (1<<0)
 
#define PAD_CTRL_SQUARE   (1<<7)
 
#define PAD_CTRL_CROSS   (1<<6)
 
#define PAD_CTRL_CIRCLE   (1<<5)
 
#define PAD_CTRL_TRIANGLE   (1<<4)
 
#define PAD_CTRL_R1   (1<<3)
 
#define PAD_CTRL_L1   (1<<2)
 
#define PAD_CTRL_R2   (1<<1)
 
#define PAD_CTRL_L2   (1<<0)
 
#define PAD_OK   0
 
#define PAD_ERROR_FATAL   0x80121101
 
#define PAD_ERROR_INVALID_PARAMETER   0x80121102
 
#define PAD_ERROR_ALREADY_INITIALIZED   0x80121103
 
#define PAD_ERROR_NOT_INITIALIZED   0x80121104
 

Typedefs

typedef struct _pad_info padInfo
 Pad info data structure (old format).
 
typedef struct _pad_info2 padInfo2
 Pad info data structure (new format).
 
typedef struct _pad_data padData
 Pad data data structure. All 1-bit button fields are zero when inctive, and 1 when active.
 
typedef struct _pad_capability_info padCapabilityInfo
 Pad capability information data structure. All 1-bit values are 1 when the capability is present, 0 otherwise.
 
typedef struct _pad_act_param padActParam
 Pad action parameters data structure.
 
typedef struct _pad_periph_info padPeriphInfo
 Pad peripheral information data structure.
 
typedef struct _pad_periph_data padPeriphData
 Pad peripheral data data structure.
 
typedef enum _io_pad_bd_code ioPadBdCode
 BD remote button codes.
 
typedef enum _io_pad_button_data_offset ioPadButtonDataOffset
 

Enumerations

enum  _io_pad_bd_code {
  BTN_BD_KEY_1 = 0x00 , BTN_BD_KEY_2 = 0x01 , BTN_BD_KEY_3 = 0x02 , BTN_BD_KEY_4 = 0x03 ,
  BTN_BD_KEY_5 = 0x04 , BTN_BD_KEY_6 = 0x05 , BTN_BD_KEY_7 = 0x06 , BTN_BD_KEY_8 = 0x07 ,
  BTN_BD_KEY_9 = 0x08 , BTN_BD_KEY_0 = 0x09 , BTN_BD_ENTER = 0x0b , BTN_BD_RETURN = 0x0e ,
  BTN_BD_CLEAR = 0x0f , BTN_BD_EJECT = 0x16 , BTN_BD_TOPMENU = 0x1a , BTN_BD_TIME = 0x28 ,
  BTN_BD_PREV = 0x30 , BTN_BD_NEXT = 0x31 , BTN_BD_PLAY = 0x32 , BTN_BD_SCAN_REV = 0x33 ,
  BTN_BD_SCAN_FWD = 0x34 , BTN_BD_STOP = 0x38 , BTN_BD_PAUSE = 0x39 , BTN_BD_POPUP_MENU = 0x40 ,
  BTN_BD_SELECT = 0x50 , BTN_BD_L3 = 0x51 , BTN_BD_R3 = 0x52 , BTN_BD_START = 0x53 ,
  BTN_BD_UP = 0x54 , BTN_BD_RIGHT = 0x55 , BTN_BD_DOWN = 0x56 , BTN_BD_LEFT = 0x57 ,
  BTN_BD_L2 = 0x58 , BTN_BD_R2 = 0x59 , BTN_BD_L1 = 0x5a , BTN_BD_R1 = 0x5b ,
  BTN_BD_TRIANGLE = 0x5c , BTN_BD_CIRCLE = 0x5d , BTN_BD_CROSS = 0x5e , BTN_BD_SQUARE = 0x5f ,
  BTN_BD_SLOW_REV = 0x60 , BTN_BD_SLOW_FWD = 0x61 , BTN_BD_SUBTITLE = 0x63 , BTN_BD_AUDIO = 0x64 ,
  BTN_BD_ANGLE = 0x65 , BTN_BD_DISPLAY = 0x70 , BTN_BD_BLUE = 0x80 , BTN_BD_RED = 0x81 ,
  BTN_BD_GREEN = 0x82 , BTN_BD_YELLOW = 0x83 , BTN_BD_RELEASE = 0xff , BTN_BD_NUMBER_11 = 0x101e ,
  BTN_BD_NUMBER_12 = 0x101f , BTN_BD_NUMBER_PERIOD = 0x102a , BTN_BD_PROGRAM_UP = 0x1030 , BTN_BD_PROGRAM_DOWN = 0x1031 ,
  BTN_BD_PREV_CHANNEL = 0x1032 , BTN_BD_PROGRAM_GUIDE = 0x1053
}
 BD remote button codes. More...
 
enum  _io_pad_button_data_offset {
  PAD_BUTTON_OFFSET_DIGITAL1 = 2 , PAD_BUTTON_OFFSET_DIGITAL2 = 3 , PAD_BUTTON_OFFSET_ANALOG_RIGHT_X = 4 , PAD_BUTTON_OFFSET_ANALOG_RIGHT_Y = 5 ,
  PAD_BUTTON_OFFSET_ANALOG_LEFT_X = 6 , PAD_BUTTON_OFFSET_ANALOG_LEFT_Y = 7 , PAD_BUTTON_OFFSET_PRESS_RIGHT = 8 , PAD_BUTTON_OFFSET_PRESS_LEFT = 9 ,
  PAD_BUTTON_OFFSET_PRESS_UP = 10 , PAD_BUTTON_OFFSET_PRESS_DOWN = 11 , PAD_BUTTON_OFFSET_PRESS_TRIANGLE = 12 , PAD_BUTTON_OFFSET_PRESS_CIRCLE = 13 ,
  PAD_BUTTON_OFFSET_PRESS_CROSS = 14 , PAD_BUTTON_OFFSET_PRESS_SQUARE = 15 , PAD_BUTTON_OFFSET_PRESS_L1 = 16 , PAD_BUTTON_OFFSET_PRESS_R1 = 17 ,
  PAD_BUTTON_OFFSET_PRESS_L2 = 18 , PAD_BUTTON_OFFSET_PRESS_R2 = 19 , PAD_BUTTON_OFFSET_SENSOR_X = 20 , PAD_BUTTON_OFFSET_SENSOR_Y = 21 ,
  PAD_BUTTON_OFFSET_SENSOR_Z = 22 , PAD_BUTTON_OFFSET_SENSOR_G = 23
}
 

Functions

s32 ioPadInit (u32 max)
 Initialize Pad IO management.
 
s32 ioPadEnd ()
 End of Pad IO management.
 
s32 ioPadGetInfo (padInfo *info)
 Get pad information.
 
s32 ioPadClearBuf (u32 port)
 Clear pad buffer.
 
s32 ioPadGetCapabilityInfo (u32 port, padCapabilityInfo *capabilities)
 Get pad capability information.
 
s32 ioPadGetData (u32 port, padData *data)
 Get pad data.
 
s32 ioPadGetDataExtra (u32 port, u32 *type, padData *data)
 Get pad data.
 
s32 ioPadInfoPressMode (u32 port)
 Get pad press mode.
 
s32 ioPadSetPressMode (u32 port, u32 mode)
 Set pad press mode.
 
s32 ioPadInfoSensorMode (u32 port)
 Get pad sensor mode.
 
s32 ioPadSetSensorMode (u32 port, u32 mode)
 Set pad sensor mode.
 
u32 ioPadSetActDirect (u32 port, padActParam *actParam)
 Set pad action (rumble) data.
 
u32 ioPadLddDataInsert (s32 handle, padData *data)
 Insert pad data into virtual pad.
 
s32 ioPadLddGetPortNo (s32 handle)
 Get port number from registered virtual pad handle.
 
s32 ioPadLddRegisterController ()
 Register a new virtual pad.
 
s32 ioPadLddUnregisterController (s32 handle)
 Unregister a virtual pad.
 
s32 ioPadGetInfo2 (padInfo2 *info)
 Get pad information (new format).
 
s32 ioPadPeriphGetInfo (padPeriphInfo *periphInfo)
 Get pad peripheral information.
 
s32 ioPadPeriphGetData (u32 port, padPeriphData *periphData)
 Get pad peripheral data.
 
s32 ioPadSetPortSetting (u32 port, u32 setting)
 Set pad port setting.
 

Detailed Description

PS3 pad/controller management.

Definition in file pad.h.

Macro Definition Documentation

◆ MAX_PAD_ACTUATOR

#define MAX_PAD_ACTUATOR   (2)

controller vibrator actuator

Definition at line 14 of file pad.h.

◆ MAX_PAD_CAPABILITY_INFO

#define MAX_PAD_CAPABILITY_INFO   (32)

controller capability information

Definition at line 13 of file pad.h.

◆ MAX_PAD_CODES

#define MAX_PAD_CODES   (64)

maximum controller buttons

Definition at line 11 of file pad.h.

◆ MAX_PADS

#define MAX_PADS   (127)

maximum controllers

Definition at line 10 of file pad.h.

◆ MAX_PORT_NUM

#define MAX_PORT_NUM   (7)

controller port number

Definition at line 12 of file pad.h.

◆ PAD_CTRL_CIRCLE

#define PAD_CTRL_CIRCLE   (1<<5)

Definition at line 48 of file pad.h.

◆ PAD_CTRL_CROSS

#define PAD_CTRL_CROSS   (1<<6)

Definition at line 47 of file pad.h.

◆ PAD_CTRL_DOWN

#define PAD_CTRL_DOWN   (1<<6)

Definition at line 37 of file pad.h.

◆ PAD_CTRL_L1

#define PAD_CTRL_L1   (1<<2)

Definition at line 51 of file pad.h.

◆ PAD_CTRL_L2

#define PAD_CTRL_L2   (1<<0)

Definition at line 53 of file pad.h.

◆ PAD_CTRL_L3

#define PAD_CTRL_L3   (1<<1)

Definition at line 42 of file pad.h.

◆ PAD_CTRL_LEFT

#define PAD_CTRL_LEFT   (1<<7)

Definition at line 36 of file pad.h.

◆ PAD_CTRL_R1

#define PAD_CTRL_R1   (1<<3)

Definition at line 50 of file pad.h.

◆ PAD_CTRL_R2

#define PAD_CTRL_R2   (1<<1)

Definition at line 52 of file pad.h.

◆ PAD_CTRL_R3

#define PAD_CTRL_R3   (1<<2)

Definition at line 41 of file pad.h.

◆ PAD_CTRL_RIGHT

#define PAD_CTRL_RIGHT   (1<<5)

Definition at line 38 of file pad.h.

◆ PAD_CTRL_SELECT

#define PAD_CTRL_SELECT   (1<<0)

Definition at line 43 of file pad.h.

◆ PAD_CTRL_SQUARE

#define PAD_CTRL_SQUARE   (1<<7)

Definition at line 46 of file pad.h.

◆ PAD_CTRL_START

#define PAD_CTRL_START   (1<<3)

Definition at line 40 of file pad.h.

◆ PAD_CTRL_TRIANGLE

#define PAD_CTRL_TRIANGLE   (1<<4)

Definition at line 49 of file pad.h.

◆ PAD_CTRL_UP

#define PAD_CTRL_UP   (1<<4)

Definition at line 39 of file pad.h.

◆ PAD_ERROR_ALREADY_INITIALIZED

#define PAD_ERROR_ALREADY_INITIALIZED   0x80121103

Definition at line 58 of file pad.h.

◆ PAD_ERROR_FATAL

#define PAD_ERROR_FATAL   0x80121101

Definition at line 56 of file pad.h.

◆ PAD_ERROR_INVALID_PARAMETER

#define PAD_ERROR_INVALID_PARAMETER   0x80121102

Definition at line 57 of file pad.h.

◆ PAD_ERROR_NOT_INITIALIZED

#define PAD_ERROR_NOT_INITIALIZED   0x80121104

Definition at line 59 of file pad.h.

◆ PAD_INFO_SUPPORTED_PRESS_MODE

#define PAD_INFO_SUPPORTED_PRESS_MODE   (1)

Definition at line 23 of file pad.h.

◆ PAD_INFO_SUPPORTED_SENSOR_MODE

#define PAD_INFO_SUPPORTED_SENSOR_MODE   (1)

Definition at line 28 of file pad.h.

◆ PAD_OK

#define PAD_OK   0

Definition at line 55 of file pad.h.

◆ PAD_PRESS_MODE_OFF

#define PAD_PRESS_MODE_OFF   (0)

Definition at line 21 of file pad.h.

◆ PAD_PRESS_MODE_ON

#define PAD_PRESS_MODE_ON   (1)

Definition at line 20 of file pad.h.

◆ PAD_SENSOR_MODE_OFF

#define PAD_SENSOR_MODE_OFF   (0)

Definition at line 26 of file pad.h.

◆ PAD_SENSOR_MODE_ON

#define PAD_SENSOR_MODE_ON   (1)

Definition at line 25 of file pad.h.

◆ PAD_SETTINGS_PRESS_OFF

#define PAD_SETTINGS_PRESS_OFF   (0)

Definition at line 31 of file pad.h.

◆ PAD_SETTINGS_PRESS_ON

#define PAD_SETTINGS_PRESS_ON   (1<<1)

Definition at line 30 of file pad.h.

◆ PAD_SETTINGS_SENSOR_OFF

#define PAD_SETTINGS_SENSOR_OFF   (0)

Definition at line 33 of file pad.h.

◆ PAD_SETTINGS_SENSOR_ON

#define PAD_SETTINGS_SENSOR_ON   (1<<2)

Definition at line 32 of file pad.h.

◆ PAD_TYPE_LDD

#define PAD_TYPE_LDD   (5)

Custom Controller

Definition at line 18 of file pad.h.

◆ PAD_TYPE_REMOTE

#define PAD_TYPE_REMOTE   (4)

BD Remote Controller

Definition at line 17 of file pad.h.

◆ PAD_TYPE_STANDARD

#define PAD_TYPE_STANDARD   (0)

standard controller

Definition at line 16 of file pad.h.

Typedef Documentation

◆ ioPadBdCode

BD remote button codes.

◆ ioPadButtonDataOffset

◆ padActParam

typedef struct _pad_act_param padActParam

Pad action parameters data structure.

◆ padCapabilityInfo

Pad capability information data structure. All 1-bit values are 1 when the capability is present, 0 otherwise.

◆ padData

typedef struct _pad_data padData

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

◆ padInfo

typedef struct _pad_info padInfo

Pad info data structure (old format).

◆ padInfo2

typedef struct _pad_info2 padInfo2

Pad info data structure (new format).

◆ padPeriphData

Pad peripheral data data structure.

◆ padPeriphInfo

Pad peripheral information data structure.

Enumeration Type Documentation

◆ _io_pad_bd_code

BD remote button codes.

Enumerator
BTN_BD_KEY_1 
BTN_BD_KEY_2 
BTN_BD_KEY_3 
BTN_BD_KEY_4 
BTN_BD_KEY_5 
BTN_BD_KEY_6 
BTN_BD_KEY_7 
BTN_BD_KEY_8 
BTN_BD_KEY_9 
BTN_BD_KEY_0 
BTN_BD_ENTER 
BTN_BD_RETURN 
BTN_BD_CLEAR 
BTN_BD_EJECT 
BTN_BD_TOPMENU 
BTN_BD_TIME 
BTN_BD_PREV 
BTN_BD_NEXT 
BTN_BD_PLAY 
BTN_BD_SCAN_REV 
BTN_BD_SCAN_FWD 
BTN_BD_STOP 
BTN_BD_PAUSE 
BTN_BD_POPUP_MENU 
BTN_BD_SELECT 
BTN_BD_L3 
BTN_BD_R3 
BTN_BD_START 
BTN_BD_UP 
BTN_BD_RIGHT 
BTN_BD_DOWN 
BTN_BD_LEFT 
BTN_BD_L2 
BTN_BD_R2 
BTN_BD_L1 
BTN_BD_R1 
BTN_BD_TRIANGLE 
BTN_BD_CIRCLE 
BTN_BD_CROSS 
BTN_BD_SQUARE 
BTN_BD_SLOW_REV 
BTN_BD_SLOW_FWD 
BTN_BD_SUBTITLE 
BTN_BD_AUDIO 
BTN_BD_ANGLE 
BTN_BD_DISPLAY 
BTN_BD_BLUE 
BTN_BD_RED 
BTN_BD_GREEN 
BTN_BD_YELLOW 
BTN_BD_RELEASE 
BTN_BD_NUMBER_11 
BTN_BD_NUMBER_12 
BTN_BD_NUMBER_PERIOD 
BTN_BD_PROGRAM_UP 
BTN_BD_PROGRAM_DOWN 
BTN_BD_PREV_CHANNEL 
BTN_BD_PROGRAM_GUIDE 

Definition at line 252 of file pad.h.

◆ _io_pad_button_data_offset

Enumerator
PAD_BUTTON_OFFSET_DIGITAL1 
PAD_BUTTON_OFFSET_DIGITAL2 
PAD_BUTTON_OFFSET_ANALOG_RIGHT_X 
PAD_BUTTON_OFFSET_ANALOG_RIGHT_Y 
PAD_BUTTON_OFFSET_ANALOG_LEFT_X 
PAD_BUTTON_OFFSET_ANALOG_LEFT_Y 
PAD_BUTTON_OFFSET_PRESS_RIGHT 
PAD_BUTTON_OFFSET_PRESS_LEFT 
PAD_BUTTON_OFFSET_PRESS_UP 
PAD_BUTTON_OFFSET_PRESS_DOWN 
PAD_BUTTON_OFFSET_PRESS_TRIANGLE 
PAD_BUTTON_OFFSET_PRESS_CIRCLE 
PAD_BUTTON_OFFSET_PRESS_CROSS 
PAD_BUTTON_OFFSET_PRESS_SQUARE 
PAD_BUTTON_OFFSET_PRESS_L1 
PAD_BUTTON_OFFSET_PRESS_R1 
PAD_BUTTON_OFFSET_PRESS_L2 
PAD_BUTTON_OFFSET_PRESS_R2 
PAD_BUTTON_OFFSET_SENSOR_X 
PAD_BUTTON_OFFSET_SENSOR_Y 
PAD_BUTTON_OFFSET_SENSOR_Z 
PAD_BUTTON_OFFSET_SENSOR_G 

Definition at line 316 of file pad.h.

Function Documentation

◆ ioPadClearBuf()

s32 ioPadClearBuf ( u32  port)

Clear pad buffer.

Parameters
portPad port.
Returns
zero if no error occured, nonzero otherwise.

◆ ioPadEnd()

s32 ioPadEnd ( )

End of Pad IO management.

Returns
zero if no error occured, nonzero otherwise.

◆ ioPadGetCapabilityInfo()

s32 ioPadGetCapabilityInfo ( u32  port,
padCapabilityInfo capabilities 
)

Get pad capability information.

Parameters
portPad port.
capabilitiesPointer to the pad capability information structure.
Returns
zero if no error occured, nonzero otherwise.

◆ ioPadGetData()

s32 ioPadGetData ( u32  port,
padData data 
)

Get pad data.

Parameters
portPad port.
dataPointer to the pad data structure.
Returns
zero if no error occured, nonzero otherwise.
Note
The padData structure is only filled if there is a change in the input since the last call. If there is no change, the structure is zero filled. If the member 'len' is zero, it indicates that there was no new input.

◆ ioPadGetDataExtra()

s32 ioPadGetDataExtra ( u32  port,
u32 *  type,
padData data 
)

Get pad data.

Parameters
portPad port.
typePointer to the device type.
dataPointer to the pad data structure.
Returns
zero if no error occured, nonzero otherwise.

◆ ioPadGetInfo()

s32 ioPadGetInfo ( padInfo info)

Get pad information.

Parameters
infoPointer to the pad info structure.
Returns
zero if no error occured, nonzero otherwise.

◆ ioPadGetInfo2()

s32 ioPadGetInfo2 ( padInfo2 info)

Get pad information (new format).

Parameters
infoPointer to the pad info structure.
Returns
zero if no error occured, nonzero otherwise.

◆ ioPadInfoPressMode()

s32 ioPadInfoPressMode ( u32  port)

Get pad press mode.

Parameters
portPad port.
Returns
The current press mode value, or a negative value in case of error.

◆ ioPadInfoSensorMode()

s32 ioPadInfoSensorMode ( u32  port)

Get pad sensor mode.

Parameters
portPad port.
Returns
The current sensor mode value, or a negative value in case of error.

◆ ioPadInit()

s32 ioPadInit ( u32  max)

Initialize Pad IO management.

Parameters
maxmaximum number of supported pads.
Returns
zero if no error occured, nonzero otherwise.

◆ ioPadLddDataInsert()

u32 ioPadLddDataInsert ( s32  handle,
padData data 
)

Insert pad data into virtual pad.

Parameters
handleThe registered handle for the virtual pad.
padDataPointer to the pad data value.
Returns
zero if no error occured, nonzero otherwise.
Todo:
to be confirmed.

◆ ioPadLddGetPortNo()

s32 ioPadLddGetPortNo ( s32  handle)

Get port number from registered virtual pad handle.

Parameters
handleThe registered handle for the virtual pad.
Returns
The port number for the virtual pad, or a negative value in case of error.

◆ ioPadLddRegisterController()

s32 ioPadLddRegisterController ( )

Register a new virtual pad.

Returns
The handle for the virtual pad, or a negative value in case of error.

◆ ioPadLddUnregisterController()

s32 ioPadLddUnregisterController ( s32  handle)

Unregister a virtual pad.

Parameters
handleThe registered handle for the virtual pad.
Returns
zero if no error occured, nonzero otherwise.

◆ ioPadPeriphGetData()

s32 ioPadPeriphGetData ( u32  port,
padPeriphData periphData 
)

Get pad peripheral data.

Parameters
portPad port.
periphDataPointer to the pad peripheral data structure.
Returns
zero if no error occured, nonzero otherwise.
Note
The padPeriphData structure is only filled if there is a change in the input since the last call. If there is no change, the structure is partially updated. If the member 'len' is zero, it indicates that there was no new input.

◆ ioPadPeriphGetInfo()

s32 ioPadPeriphGetInfo ( padPeriphInfo periphInfo)

Get pad peripheral information.

Parameters
periphInfoPointer to the pad peripheral info structure.
Returns
zero if no error occured, nonzero otherwise.

◆ ioPadSetActDirect()

u32 ioPadSetActDirect ( u32  port,
padActParam actParam 
)

Set pad action (rumble) data.

Parameters
portPad port.
actParamPointer to the action data structure.
Returns
zero if no error occured, nonzero otherwise.

◆ ioPadSetPortSetting()

s32 ioPadSetPortSetting ( u32  port,
u32  setting 
)

Set pad port setting.

Parameters
portPad port.
settingSetting value.
Returns
zero if no error occured, nonzero otherwise.
Todo:
confirm this..

◆ ioPadSetPressMode()

s32 ioPadSetPressMode ( u32  port,
u32  mode 
)

Set pad press mode.

Parameters
portPad port.
modeThe selected press mode.
Returns
zero if no error occured, nonzero otherwise.

◆ ioPadSetSensorMode()

s32 ioPadSetSensorMode ( u32  port,
u32  mode 
)

Set pad sensor mode.

Parameters
portPad port.
modeThe selected sensor mode.
Returns
zero if no error occured, nonzero otherwise.