PS2SDK
PS2 Homebrew Libraries
|
#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"
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 |
IOP pad driver
Definition in file padMiscFuncs.c.
void DeleteThreadsEventFlag | ( | vblankData_t * | s | ) |
Definition at line 34 of file padMiscFuncs.c.
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.
Definition at line 41 of file padMiscFuncs.c.
References padPortClose().
s32 padPortClose | ( | s32 | port, |
s32 | slot, | ||
s32 | wait | ||
) |
Definition at line 75 of file padMiscFuncs.c.
u32 padSetMainMode | ( | u32 | port, |
u32 | slot, | ||
u32 | mode, | ||
u32 | lock | ||
) |
Definition at line 105 of file padMiscFuncs.c.
s32 padInfoAct | ( | u32 | port, |
u32 | slot, | ||
s32 | act, | ||
u32 | val | ||
) |
Definition at line 127 of file padMiscFuncs.c.
s32 padInfoComb | ( | u32 | port, |
u32 | slot, | ||
s32 | listno, | ||
u32 | offs | ||
) |
Definition at line 157 of file padMiscFuncs.c.
s32 padInfoMode | ( | u32 | port, |
u32 | slot, | ||
s32 | term, | ||
u32 | offs | ||
) |
Definition at line 187 of file padMiscFuncs.c.
u32 ActDirectTotal | ( | u32 | port, |
u32 | slot | ||
) |
Definition at line 233 of file padMiscFuncs.c.
u32 CheckAirDirectTotal | ( | u32 | port, |
u32 | slot, | ||
u8 * | actData | ||
) |
Definition at line 265 of file padMiscFuncs.c.
u32 padSetActDirect | ( | u32 | port, |
u32 | slot, | ||
u8 * | actData | ||
) |
Definition at line 294 of file padMiscFuncs.c.
u32 padSetActAlign | ( | u32 | port, |
u32 | slot, | ||
const u8 * | actData | ||
) |
Definition at line 318 of file padMiscFuncs.c.
u32 padGetButtonMask | ( | u32 | port, |
u32 | slot | ||
) |
Definition at line 340 of file padMiscFuncs.c.
u32 padSetButtonInfo | ( | u32 | port, |
u32 | slot, | ||
u32 | info | ||
) |
Definition at line 358 of file padMiscFuncs.c.
u32 padSetVrefParam | ( | u32 | port, |
u32 | slot, | ||
const u8 * | vparam | ||
) |
Definition at line 391 of file padMiscFuncs.c.
u32 padGetPortMax | ( | void | ) |
Returns # slots on the PS2 (usally 2)
Definition at line 416 of file padMiscFuncs.c.
u32 padGetSlotMax | ( | u32 | port | ) |
Definition at line 421 of file padMiscFuncs.c.
u32 padGetModVersion | ( | ) |
Returns the padman.irx version NOT SUPPORTED on module rom0:padman
Definition at line 430 of file padMiscFuncs.c.
u32 padGetInBuffer | ( | u32 | port, |
u32 | slot, | ||
u8 * | buf | ||
) |
Definition at line 435 of file padMiscFuncs.c.
u32 padGetModeConfig | ( | u32 | port, |
u32 | slot | ||
) |
Definition at line 445 of file padMiscFuncs.c.
|
extern |
|
extern |