PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
libmouse.h File Reference
#include <ps2mouse.h>
+ Include dependency graph for libmouse.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef mouse_data PS2MouseData
 

Functions

int PS2MouseInit (void)
 
int PS2MouseRead (PS2MouseData *)
 
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 ()
 
int PS2MouseSetDblClickTime (u32 msec)
 
u32 PS2MouseGetDblClickTIme ()
 
u32 PS2MouseGetVersion ()
 

Detailed Description

USB Mouse Driver for PS2

Definition in file libmouse.h.

Typedef Documentation

◆ PS2MouseData

Definition at line 21 of file libmouse.h.

Function Documentation

◆ PS2MouseInit()

int PS2MouseInit ( void  )
extern

Initialise the RPC library

Definition at line 41 of file libmouse.c.

◆ PS2MouseRead()

int PS2MouseRead ( PS2MouseData data)
extern

Reads the current mouse data (depending on read mode)

Definition at line 64 of file libmouse.c.

◆ PS2MouseSetReadMode()

int PS2MouseSetReadMode ( u32  readMode)
extern

Sets the read mode

Definition at line 84 of file libmouse.c.

◆ PS2MouseGetReadMode()

u32 PS2MouseGetReadMode ( )
extern

Gets the current read mode

Definition at line 94 of file libmouse.c.

◆ PS2MouseSetThres()

int PS2MouseSetThres ( u32  thres)
extern

Definition at line 105 of file libmouse.c.

◆ PS2MouseGetThres()

u32 PS2MouseGetThres ( )
extern

Definition at line 115 of file libmouse.c.

◆ PS2MouseSetAccel()

int PS2MouseSetAccel ( float  accel)
extern

Definition at line 125 of file libmouse.c.

◆ PS2MouseGetAccel()

float PS2MouseGetAccel ( )
extern

Definition at line 140 of file libmouse.c.

◆ PS2MouseSetBoundary()

int PS2MouseSetBoundary ( int  minx,
int  maxx,
int  miny,
int  maxy 
)
extern

Definition at line 154 of file libmouse.c.

◆ PS2MouseGetBoundary()

int PS2MouseGetBoundary ( int *  minx,
int *  maxx,
int *  miny,
int *  maxy 
)
extern

Definition at line 168 of file libmouse.c.

◆ PS2MouseSetPosition()

int PS2MouseSetPosition ( int  x,
int  y 
)
extern

Definition at line 184 of file libmouse.c.

◆ PS2MouseReset()

int PS2MouseReset ( )
extern

Definition at line 196 of file libmouse.c.

◆ PS2MouseEnum()

u32 PS2MouseEnum ( )
extern

Definition at line 205 of file libmouse.c.

◆ PS2MouseSetDblClickTime()

int PS2MouseSetDblClickTime ( u32  msec)
extern

Definition at line 227 of file libmouse.c.

◆ PS2MouseGetDblClickTIme()

u32 PS2MouseGetDblClickTIme ( )
extern

Definition at line 238 of file libmouse.c.

◆ PS2MouseGetVersion()

u32 PS2MouseGetVersion ( )
extern

Definition at line 216 of file libmouse.c.