PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
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
13extern "C" {
14#endif
15
16s32 padInit(void * ee_addr);
17s32 padEnd();
18s32 padPortClose(s32 port, s32 slot, s32 wait);
19s32 padPortOpen(s32 port, s32 slot, s32 pad_area_ee_addr, u32 *buf);
20u32 padGetInBuffer(u32 port, u32 slot, u8 *buf);
21u32 padSetupEEButtonData(u32 port, u32 slot, void *pstate);
22u32 padGetModeConfig(u32 port, u32 slot);
23u32 padSetMainMode(u32 port, u32 slot, u32 mode, u32 lock);
24u32 padSetActDirect(u32 port, u32 slot, u8 *actData);
25u32 padSetActAlign(u32 port, u32 slot, const u8 *actData);
26u32 padGetButtonMask(u32 port, u32 slot);
27u32 padSetButtonInfo(u32 port, u32 slot, u32 info);
28s32 padInfoAct(u32 port, u32 slot, s32 act, u32 val);
29s32 padInfoComb(u32 port, u32 slot, s32 val1, u32 val2);
30s32 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__ */
int padPortOpen(int port, int slot, void *padArea)
Definition libpad.c:394
int padSetActAlign(int port, int slot, const char act_align[6])
Definition libpad.c:779
int padInfoMode(int port, int slot, int infoMode, int index)
Definition libpad.c:590
int padSetActDirect(int port, int slot, char act_align[6])
Definition libpad.c:802
int padInit(int mode)
Definition libpad.c:297
int padPortClose(int port, int slot)
Definition libpad.c:451
unsigned char padInfoAct(int port, int slot, int word, int byte)
Definition libpad.c:740
int padSetMainMode(int port, int slot, int mode, int lock)
Definition libpad.c:658
s32 padEnd()
Definition libpad.c:374