|
PS2SDK
PS2 Homebrew Libraries
|
#include <stdio.h>#include <tamtypes.h>#include <sifrpc.h>#include <kernel.h>#include <string.h>#include "libmouse.h"
Include dependency graph for libmouse.c:Go to the source code of this file.
Data Structures | |
| struct | mbounds |
| struct | .pos |
Functions | |
| static SifRpcClientData_t mouseif | __attribute__ ((aligned(64))) |
| int | PS2MouseInit (void) |
| int | PS2MouseRead (PS2MouseData *data) |
| int | PS2MouseSetReadMode (u32 readMode) |
| u32 | PS2MouseGetReadMode () |
| int | PS2MouseSetThres (u32 thres) |
| u32 | PS2MouseGetThres () |
| int | PS2MouseSetAccel (float accel) |
| float | PS2MouseGetAccel () |
| int | PS2MouseSetBoundary (int minx, int maxx, int miny, int maxy) |
| int | PS2MouseGetBoundary (int *minx, int *maxx, int *miny, int *maxy) |
| int | PS2MouseSetPosition (int x, int y) |
| int | PS2MouseReset () |
| u32 | PS2MouseEnum () |
| u32 | PS2MouseGetVersion () |
| int | PS2MouseSetDblClickTime (u32 msec) |
| u32 | PS2MouseGetDblClickTIme () |
Variables | |
| char | buffer [128] |
| u32 | mode |
| u32 | accel |
| u32 | thres |
| struct mbounds | bounds |
| struct { | |
| s32 | x |
| s32 | y |
| } | pos |
| u32 | data |
| u32 | time |
| static int | mouse_init = 0 |
USB Mouse Driver for PS2
Definition in file libmouse.c.
| struct mbounds |
Definition at line 28 of file libmouse.c.
| Data Fields | ||
|---|---|---|
| s32 | minx | |
| s32 | maxx | |
| s32 | miny | |
| s32 | maxy | |
| struct .pos |
Definition at line 33 of file libmouse.c.
| Data Fields | ||
|---|---|---|
| s32 | x | |
| s32 | y | |
| int PS2MouseInit | ( | void | ) |
Initialise the RPC library
Definition at line 41 of file libmouse.c.
| int PS2MouseRead | ( | PS2MouseData * | ) |
Reads the current mouse data (depending on read mode)
Definition at line 64 of file libmouse.c.
| int PS2MouseSetReadMode | ( | u32 | readMode | ) |
Sets the read mode
Definition at line 84 of file libmouse.c.
| u32 PS2MouseGetReadMode | ( | ) |
Gets the current read mode
Definition at line 94 of file libmouse.c.