ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>
#include <kernel.h>
#include <sifrpc.h>
#include <loadfile.h>
#include <stdio.h>
#include "libpad.h"
Go to the source code of this file.
Functions | |
static void | loadModules (void) |
static int | waitPadReady (int port, int slot) |
static int | initializePad (int port, int slot) |
int | main () |
Variables | |
static char | padBuf [256] |
static char | actAlign [6] |
static int | actuators |
|
static |
Definition at line 92 of file pad.c.
References actAlign, actuators, PAD_MMODE_DUALSHOCK, PAD_MMODE_LOCK, PAD_MODECUREXID, PAD_MODECURID, PAD_MODETABLE, PAD_TYPE_DUALSHOCK, padEnterPressMode(), padInfoAct(), padInfoMode(), padInfoPressMode(), padSetActAlign(), padSetMainMode(), port, slot, and waitPadReady().
Referenced by main().
|
static |
Definition at line 42 of file pad.c.
References NULL, SifLoadModule(), and SleepThread().
Referenced by main().
int main | ( | void | ) |
Definition at line 181 of file pad.c.
References actAlign, padButtonStatus::btns, initializePad(), loadModules(), new_pad, old_pad, PAD_CIRCLE, PAD_CROSS, PAD_DOWN, PAD_L1, PAD_L2, PAD_L3, PAD_LEFT, PAD_R1, PAD_R2, PAD_R3, PAD_RIGHT, PAD_SELECT, PAD_SQUARE, PAD_START, PAD_STATE_DISCONN, PAD_STATE_FINDCTP1, PAD_STATE_STABLE, PAD_TRIANGLE, PAD_UP, padBuf, paddata, padEnterPressMode(), padExitPressMode(), padGetPortMax(), padGetSlotMax(), padGetState(), padInit(), padPortOpen(), padRead(), padSetActDirect(), port, padButtonStatus::rjoy_h, SifInitRpc(), SleepThread(), slot, and padButtonStatus::triangle_p.
|
static |
Definition at line 63 of file pad.c.
References PAD_STATE_FINDCTP1, PAD_STATE_STABLE, padGetState(), padStateInt2String(), port, and slot.
Referenced by initializePad().
|
static |
Definition at line 30 of file pad.c.
Referenced by initializePad(), main(), padSetActAlign(), and padSetActDirect().
|
static |
Definition at line 31 of file pad.c.
Referenced by initializePad().