PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
xpadman.h File Reference
#include <types.h>
#include <defs.h>
+ Include dependency graph for xpadman.h:

Go to the source code of this file.

Macros

#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)
 

Functions

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)
 

Detailed Description

Extended pad functions

Definition in file xpadman.h.

Macro Definition Documentation

◆ xpadman_IMPORTS_start

#define xpadman_IMPORTS_start   DECLARE_IMPORT_TABLE(padman, 1, 2)

Definition at line 32 of file xpadman.h.

◆ xpadman_IMPORTS_end

#define xpadman_IMPORTS_end   END_IMPORT_TABLE

Definition at line 33 of file xpadman.h.

◆ I_padInit

#define I_padInit   DECLARE_IMPORT(4, padInit)

Definition at line 35 of file xpadman.h.

◆ I_padEnd

#define I_padEnd   DECLARE_IMPORT(5, padEnd)

Definition at line 36 of file xpadman.h.

◆ I_padPortOpen

#define I_padPortOpen   DECLARE_IMPORT(6, padPortOpen)

Definition at line 37 of file xpadman.h.

◆ I_padPortClose

#define I_padPortClose   DECLARE_IMPORT(7, padPortClose)

Definition at line 38 of file xpadman.h.

◆ I_padGetInBuffer

#define I_padGetInBuffer   DECLARE_IMPORT(8, padGetInBuffer)

Definition at line 39 of file xpadman.h.

◆ I_padSetupEEButtonData

#define I_padSetupEEButtonData   DECLARE_IMPORT(9, padSetupEEButtonData)

Definition at line 40 of file xpadman.h.

◆ I_padGetModeConfig

#define I_padGetModeConfig   DECLARE_IMPORT(10, padGetModeConfig)

Definition at line 41 of file xpadman.h.

◆ I_padInfoAct

#define I_padInfoAct   DECLARE_IMPORT(11, padInfoAct)

Definition at line 42 of file xpadman.h.

◆ I_padInfoComb

#define I_padInfoComb   DECLARE_IMPORT(12, padInfoComb)

Definition at line 43 of file xpadman.h.

◆ I_padInfoMode

#define I_padInfoMode   DECLARE_IMPORT(13, padInfoMode)

Definition at line 44 of file xpadman.h.

◆ I_padSetMainMode

#define I_padSetMainMode   DECLARE_IMPORT(14, padSetMainMode)

Definition at line 45 of file xpadman.h.

◆ I_padSetActDirect

#define I_padSetActDirect   DECLARE_IMPORT(15, padSetActDirect)

Definition at line 46 of file xpadman.h.

◆ I_padSetActAlign

#define I_padSetActAlign   DECLARE_IMPORT(16, padSetActAlign)

Definition at line 47 of file xpadman.h.

◆ I_padGetButtonMask

#define I_padGetButtonMask   DECLARE_IMPORT(17, padGetButtonMask)

Definition at line 48 of file xpadman.h.

◆ I_padGetButtonInfo

#define I_padGetButtonInfo   DECLARE_IMPORT(18, padGetButtonInfo)

Definition at line 49 of file xpadman.h.

Function Documentation

◆ padInit()

s32 padInit ( void *  ee_addr)

Definition at line 677 of file padInit.c.

◆ padEnd()

s32 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 
)

Definition at line 75 of file padMiscFuncs.c.

◆ padPortOpen()

s32 padPortOpen ( s32  port,
s32  slot,
s32  pad_area_ee_addr,
u32 *  buf 
)

Definition at line 662 of file padPortOpen.c.

◆ padGetInBuffer()

u32 padGetInBuffer ( u32  port,
u32  slot,
u8 *  buf 
)

Definition at line 435 of file padMiscFuncs.c.

◆ padGetModeConfig()

u32 padGetModeConfig ( u32  port,
u32  slot 
)

Definition at line 445 of file padMiscFuncs.c.

◆ padSetMainMode()

u32 padSetMainMode ( u32  port,
u32  slot,
u32  mode,
u32  lock 
)

Definition at line 105 of file padMiscFuncs.c.

◆ padSetActDirect()

u32 padSetActDirect ( u32  port,
u32  slot,
u8 *  actData 
)

Definition at line 294 of file padMiscFuncs.c.

◆ padSetActAlign()

u32 padSetActAlign ( u32  port,
u32  slot,
const u8 *  actData 
)

Definition at line 318 of file padMiscFuncs.c.

◆ padGetButtonMask()

u32 padGetButtonMask ( u32  port,
u32  slot 
)

Definition at line 340 of file padMiscFuncs.c.

◆ padSetButtonInfo()

u32 padSetButtonInfo ( u32  port,
u32  slot,
u32  info 
)

Definition at line 358 of file padMiscFuncs.c.

◆ padInfoAct()

s32 padInfoAct ( u32  port,
u32  slot,
s32  act,
u32  val 
)

Definition at line 127 of file padMiscFuncs.c.

◆ padInfoComb()

s32 padInfoComb ( u32  port,
u32  slot,
s32  val1,
u32  val2 
)

Definition at line 157 of file padMiscFuncs.c.

◆ padInfoMode()

s32 padInfoMode ( u32  port,
u32  slot,
s32  val1,
u32  val2 
)

Definition at line 187 of file padMiscFuncs.c.