PS2SDK
PS2 Homebrew Libraries
xpadman.h
Go to the documentation of this file.
1 
6 #ifndef __XPADMAN_H__
7 #define __XPADMAN_H__
8 
9 #include <types.h>
10 #include <defs.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 extern s32 padInit(void * ee_addr);
17 extern s32 padEnd();
18 extern s32 padPortClose(s32 port, s32 slot, s32 wait);
19 extern s32 padPortOpen(s32 port, s32 slot, s32 pad_area_ee_addr, u32 *buf);
20 extern u32 padGetInBuffer(u32 port, u32 slot, u8 *buf);
21 extern u32 padSetupEEButtonData(u32 port, u32 slot, void *pstate);
22 extern u32 padGetModeConfig(u32 port, u32 slot);
23 extern u32 padSetMainMode(u32 port, u32 slot, u32 mode, u32 lock);
24 extern u32 padSetActDirect(u32 port, u32 slot, u8 *actData);
25 extern u32 padSetActAlign(u32 port, u32 slot, const u8 *actData);
26 extern u32 padGetButtonMask(u32 port, u32 slot);
27 extern u32 padSetButtonInfo(u32 port, u32 slot, u32 info);
28 extern s32 padInfoAct(u32 port, u32 slot, s32 act, u32 val);
29 extern s32 padInfoComb(u32 port, u32 slot, s32 val1, u32 val2);
30 extern s32 padInfoMode(u32 port, u32 slot, s32 val1, u32 val2);
31 
32 #define xpadman_IMPORTS_start DECLARE_IMPORT_TABLE(padman, 1, 2)
33 #define xpadman_IMPORTS_end END_IMPORT_TABLE
34 
35 #define I_padInit DECLARE_IMPORT(4, padInit)
36 #define I_padEnd DECLARE_IMPORT(5, padEnd)
37 #define I_padPortOpen DECLARE_IMPORT(6, padPortOpen)
38 #define I_padPortClose DECLARE_IMPORT(7, padPortClose)
39 #define I_padGetInBuffer DECLARE_IMPORT(8, padGetInBuffer)
40 #define I_padSetupEEButtonData DECLARE_IMPORT(9, padSetupEEButtonData)
41 #define I_padGetModeConfig DECLARE_IMPORT(10, padGetModeConfig)
42 #define I_padInfoAct DECLARE_IMPORT(11, padInfoAct)
43 #define I_padInfoComb DECLARE_IMPORT(12, padInfoComb)
44 #define I_padInfoMode DECLARE_IMPORT(13, padInfoMode)
45 #define I_padSetMainMode DECLARE_IMPORT(14, padSetMainMode)
46 #define I_padSetActDirect DECLARE_IMPORT(15, padSetActDirect)
47 #define I_padSetActAlign DECLARE_IMPORT(16, padSetActAlign)
48 #define I_padGetButtonMask DECLARE_IMPORT(17, padGetButtonMask)
49 #define I_padGetButtonInfo DECLARE_IMPORT(18, padGetButtonInfo)
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif /* __XPADMAN_H__ */
padPortClose
int padPortClose(int port, int slot)
Definition: libpad.c:577
s_info
Definition: xprintf.c:78
padSetActAlign
int padSetActAlign(int port, int slot, const char actAlign[6])
Definition: libpad.c:1028
padInit
int padInit(int mode)
Definition: libpad.c:307
padPortOpen
int padPortOpen(int port, int slot, void *padArea)
Definition: libpad.c:465
padInfoMode
int padInfoMode(int port, int slot, int infoMode, int index)
Definition: libpad.c:808
padEnd
s32 padEnd()
Definition: libpad.c:434
padSetMainMode
int padSetMainMode(int port, int slot, int mode, int lock)
Definition: libpad.c:869
padSetActDirect
int padSetActDirect(int port, int slot, const char actAlign[6])
Definition: libpad.c:1059
defs.h
padInfoAct
unsigned char padInfoAct(int port, int slot, int actuator, int cmd)
Definition: libpad.c:975