PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
padMiscFuncs.c File Reference
#include "types.h"
#include "freepad.h"
#include "stdio.h"
#include "sio2Cmds.h"
#include "sysmem.h"
#include "thevent.h"
#include "thbase.h"
#include "vblank.h"
#include "irx.h"
+ Include dependency graph for padMiscFuncs.c:

Go to the source code of this file.

Functions

void DeleteThreadsEventFlag (vblankData_t *s)
 
s32 padEnd (void)
 
s32 padPortClose (s32 port, s32 slot, s32 wait)
 
u32 padSetMainMode (u32 port, u32 slot, u32 mode, u32 lock)
 
s32 padInfoAct (u32 port, u32 slot, s32 act, u32 val)
 
s32 padInfoComb (u32 port, u32 slot, s32 listno, u32 offs)
 
s32 padInfoMode (u32 port, u32 slot, s32 term, u32 offs)
 
u32 ActDirectTotal (u32 port, u32 slot)
 
u32 CheckAirDirectTotal (u32 port, u32 slot, u8 *actData)
 
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)
 
u32 padSetVrefParam (u32 port, u32 slot, const u8 *vparam)
 
u32 padGetPortMax (void)
 
u32 padGetSlotMax (u32 port)
 
u32 padGetModVersion (void)
 
u32 padGetInBuffer (u32 port, u32 slot, u8 *buf)
 
u32 padGetModeConfig (u32 port, u32 slot)
 

Variables

struct irx_id _irx_id
 
padState_t padState [2][4]
 
u32 openSlots [2]
 
vblankData_t vblankData
 
int padman_init
 
void * pad_ee_addr
 

Detailed Description

IOP pad driver

Definition in file padMiscFuncs.c.

Function Documentation

◆ DeleteThreadsEventFlag()

void DeleteThreadsEventFlag ( vblankData_t s)

Definition at line 34 of file padMiscFuncs.c.

◆ padEnd()

s32 padEnd ( void  )

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 41 of file padMiscFuncs.c.

References padPortClose().

◆ padPortClose()

s32 padPortClose ( s32  port,
s32  slot,
s32  wait 
)

Definition at line 75 of file padMiscFuncs.c.

◆ padSetMainMode()

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

Definition at line 105 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  listno,
u32  offs 
)

Definition at line 157 of file padMiscFuncs.c.

◆ padInfoMode()

s32 padInfoMode ( u32  port,
u32  slot,
s32  term,
u32  offs 
)

Definition at line 187 of file padMiscFuncs.c.

◆ ActDirectTotal()

u32 ActDirectTotal ( u32  port,
u32  slot 
)

Definition at line 233 of file padMiscFuncs.c.

◆ CheckAirDirectTotal()

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

Definition at line 265 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.

◆ padSetVrefParam()

u32 padSetVrefParam ( u32  port,
u32  slot,
const u8 *  vparam 
)

Definition at line 391 of file padMiscFuncs.c.

◆ padGetPortMax()

u32 padGetPortMax ( void  )

Returns # slots on the PS2 (usally 2)

Definition at line 416 of file padMiscFuncs.c.

◆ padGetSlotMax()

u32 padGetSlotMax ( u32  port)

Definition at line 421 of file padMiscFuncs.c.

◆ padGetModVersion()

u32 padGetModVersion ( )

Returns the padman.irx version NOT SUPPORTED on module rom0:padman

Definition at line 430 of file padMiscFuncs.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.

Variable Documentation

◆ padState

padState_t padState[2][4]
extern

Definition at line 33 of file padInit.c.

◆ openSlots

u32 openSlots[2]
extern

Definition at line 34 of file padInit.c.

◆ vblankData

vblankData_t vblankData
extern

Definition at line 35 of file padInit.c.

◆ padman_init

int padman_init
extern

Definition at line 36 of file padInit.c.

◆ pad_ee_addr

void* pad_ee_addr
extern

Definition at line 37 of file padInit.c.