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 <string.h>
#include "gs_privileged.h"
#include "libpad.h"
#include "libmtap.h"
Go to the source code of this file.
Functions | |
int | wait_vsync (void) |
void | loadmodules (int free) |
void | find_controllers () |
int | main (int argc, char **argv) |
Variables | |
static char * | padBuf [2][4] |
static u32 | padConnected [2][4] |
static u32 | padOpen [2][4] |
static u32 | mtapConnected [2] |
static u32 | maxslot [2] |
void find_controllers | ( | ) |
Definition at line 105 of file mtap_sample.c.
References maxslot, mtapConnected, mtapGetConnection(), PAD_STATE_DISCONN, PAD_STATE_STABLE, padBuf, padConnected, padGetState(), padOpen, padPortClose(), padPortOpen(), port, and slot.
Referenced by main().
void loadmodules | ( | int | free | ) |
Definition at line 48 of file mtap_sample.c.
References NULL, SifLoadModule(), and SleepThread().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 193 of file mtap_sample.c.
References padButtonStatus::btns, find_controllers(), loadmodules(), maxslot, mtapConnected, mtapInit(), mtapPortOpen(), 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_TRIANGLE, PAD_UP, padBuf, padConnected, paddata, padInit(), padOpen, padRead(), port, SifInitRpc(), slot, and wait_vsync().
int wait_vsync | ( | void | ) |
Definition at line 31 of file mtap_sample.c.
References GS_REG_CSR, and GS_SET_CSR.
Referenced by main().
|
static |
Definition at line 28 of file mtap_sample.c.
Referenced by find_controllers(), and main().
|
static |
Definition at line 27 of file mtap_sample.c.
Referenced by find_controllers(), and main().
|
static |
Definition at line 24 of file mtap_sample.c.
Referenced by find_controllers(), and main().
|
static |
Definition at line 25 of file mtap_sample.c.
Referenced by find_controllers(), and main().
|
static |
Definition at line 26 of file mtap_sample.c.
Referenced by find_controllers(), and main().