#include <types.h>
#include <defs.h>
Go to the source code of this file.
|
#define | xpadman_IMPORTS_start DECLARE_IMPORT_TABLE(padman, 1, 2) |
|
#define | xpadman_IMPORTS_end END_IMPORT_TABLE |
|
#define | I_padInit DECLARE_IMPORT(4, padInit) |
|
#define | I_padEnd DECLARE_IMPORT(5, padEnd) |
|
#define | I_padPortOpen DECLARE_IMPORT(6, padPortOpen) |
|
#define | I_padPortClose DECLARE_IMPORT(7, padPortClose) |
|
#define | I_padGetInBuffer DECLARE_IMPORT(8, padGetInBuffer) |
|
#define | I_padSetupEEButtonData DECLARE_IMPORT(9, padSetupEEButtonData) |
|
#define | I_padGetModeConfig DECLARE_IMPORT(10, padGetModeConfig) |
|
#define | I_padInfoAct DECLARE_IMPORT(11, padInfoAct) |
|
#define | I_padInfoComb DECLARE_IMPORT(12, padInfoComb) |
|
#define | I_padInfoMode DECLARE_IMPORT(13, padInfoMode) |
|
#define | I_padSetMainMode DECLARE_IMPORT(14, padSetMainMode) |
|
#define | I_padSetActDirect DECLARE_IMPORT(15, padSetActDirect) |
|
#define | I_padSetActAlign DECLARE_IMPORT(16, padSetActAlign) |
|
#define | I_padGetButtonMask DECLARE_IMPORT(17, padGetButtonMask) |
|
#define | I_padGetButtonInfo DECLARE_IMPORT(18, padGetButtonInfo) |
|
|
s32 | padInit (void *ee_addr) |
|
s32 | padEnd () |
|
s32 | padPortClose (s32 port, s32 slot, s32 wait) |
|
s32 | padPortOpen (s32 port, s32 slot, s32 pad_area_ee_addr, u32 *buf) |
|
u32 | padGetInBuffer (u32 port, u32 slot, u8 *buf) |
|
u32 | padSetupEEButtonData (u32 port, u32 slot, void *pstate) |
|
u32 | padGetModeConfig (u32 port, u32 slot) |
|
u32 | padSetMainMode (u32 port, u32 slot, u32 mode, u32 lock) |
|
u32 | padSetActDirect (u32 port, u32 slot, u8 *actData) |
|
u32 | padSetActAlign (u32 port, u32 slot, const u8 *actData) |
|
u32 | padGetButtonMask (u32 port, u32 slot) |
|
u32 | padSetButtonInfo (u32 port, u32 slot, u32 info) |
|
s32 | padInfoAct (u32 port, u32 slot, s32 act, u32 val) |
|
s32 | padInfoComb (u32 port, u32 slot, s32 val1, u32 val2) |
|
s32 | padInfoMode (u32 port, u32 slot, s32 val1, u32 val2) |
|
Extended pad functions
Definition in file xpadman.h.
◆ xpadman_IMPORTS_start
#define xpadman_IMPORTS_start DECLARE_IMPORT_TABLE(padman, 1, 2) |
◆ xpadman_IMPORTS_end
#define xpadman_IMPORTS_end END_IMPORT_TABLE |
◆ I_padInit
#define I_padInit DECLARE_IMPORT(4, padInit) |
◆ I_padEnd
#define I_padEnd DECLARE_IMPORT(5, padEnd) |
◆ I_padPortOpen
◆ I_padPortClose
◆ I_padGetInBuffer
#define I_padGetInBuffer DECLARE_IMPORT(8, padGetInBuffer) |
◆ I_padSetupEEButtonData
#define I_padSetupEEButtonData DECLARE_IMPORT(9, padSetupEEButtonData) |
◆ I_padGetModeConfig
#define I_padGetModeConfig DECLARE_IMPORT(10, padGetModeConfig) |
◆ I_padInfoAct
#define I_padInfoAct DECLARE_IMPORT(11, padInfoAct) |
◆ I_padInfoComb
#define I_padInfoComb DECLARE_IMPORT(12, padInfoComb) |
◆ I_padInfoMode
◆ I_padSetMainMode
◆ I_padSetActDirect
◆ I_padSetActAlign
◆ I_padGetButtonMask
#define I_padGetButtonMask DECLARE_IMPORT(17, padGetButtonMask) |
◆ I_padGetButtonInfo
#define I_padGetButtonInfo DECLARE_IMPORT(18, padGetButtonInfo) |
◆ padInit()
s32 padInit |
( |
void * |
ee_addr | ) |
|
◆ padEnd()
Ends all pad communication Note: PADMAN from release 1.3.4 does not have padPortInit implemented. As a result, it is impossible to reinitialize libpad after calling padEnd(). This was known as padClose in the really early official SDK releases.
- Returns
- == 1 => OK
Definition at line 374 of file libpad.c.
◆ padPortClose()
s32 padPortClose |
( |
s32 |
port, |
|
|
s32 |
slot, |
|
|
s32 |
wait |
|
) |
| |
◆ padPortOpen()
s32 padPortOpen |
( |
s32 |
port, |
|
|
s32 |
slot, |
|
|
s32 |
pad_area_ee_addr, |
|
|
u32 * |
buf |
|
) |
| |
◆ padGetInBuffer()
u32 padGetInBuffer |
( |
u32 |
port, |
|
|
u32 |
slot, |
|
|
u8 * |
buf |
|
) |
| |
◆ padGetModeConfig()
u32 padGetModeConfig |
( |
u32 |
port, |
|
|
u32 |
slot |
|
) |
| |
◆ padSetMainMode()
u32 padSetMainMode |
( |
u32 |
port, |
|
|
u32 |
slot, |
|
|
u32 |
mode, |
|
|
u32 |
lock |
|
) |
| |
◆ padSetActDirect()
u32 padSetActDirect |
( |
u32 |
port, |
|
|
u32 |
slot, |
|
|
u8 * |
actData |
|
) |
| |
◆ padSetActAlign()
u32 padSetActAlign |
( |
u32 |
port, |
|
|
u32 |
slot, |
|
|
const u8 * |
actData |
|
) |
| |
◆ padGetButtonMask()
u32 padGetButtonMask |
( |
u32 |
port, |
|
|
u32 |
slot |
|
) |
| |
◆ padSetButtonInfo()
u32 padSetButtonInfo |
( |
u32 |
port, |
|
|
u32 |
slot, |
|
|
u32 |
info |
|
) |
| |
◆ padInfoAct()
s32 padInfoAct |
( |
u32 |
port, |
|
|
u32 |
slot, |
|
|
s32 |
act, |
|
|
u32 |
val |
|
) |
| |
◆ padInfoComb()
s32 padInfoComb |
( |
u32 |
port, |
|
|
u32 |
slot, |
|
|
s32 |
val1, |
|
|
u32 |
val2 |
|
) |
| |
◆ padInfoMode()
s32 padInfoMode |
( |
u32 |
port, |
|
|
u32 |
slot, |
|
|
s32 |
val1, |
|
|
u32 |
val2 |
|
) |
| |