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

Go to the source code of this file.

Data Structures

struct  _mouse_data
 

Macros

#define PS2MOUSE_READMODE_DIFF   0
 
#define PS2MOUSE_READMODE_ABS   1
 
#define PS2MOUSE_BTN1   1
 
#define PS2MOUSE_BTN2   2
 
#define PS2MOUSE_BTN3   4
 
#define PS2MOUSE_BTN1DBL   (PS2MOUSE_BTN1 << 8)
 
#define PS2MOUSE_BTN2DBL   (PS2MOUSE_BTN2 << 8)
 
#define PS2MOUSE_BTN3DBL   (PS2MOUSE_BTN3 << 8)
 
#define PS2MOUSE_BIND_RPC_ID   0x500C001
 
#define PS2MOUSE_READ   0x1
 
#define PS2MOUSE_SETREADMODE   0x2
 
#define PS2MOUSE_GETREADMODE   0x3
 
#define PS2MOUSE_SETTHRES   0x4
 
#define PS2MOUSE_GETTHRES   0x5
 
#define PS2MOUSE_SETACCEL   0x6
 
#define PS2MOUSE_GETACCEL   0x7
 
#define PS2MOUSE_SETBOUNDARY   0x8
 
#define PS2MOUSE_GETBOUNDARY   0x9
 
#define PS2MOUSE_SETPOSITION   0xA
 
#define PS2MOUSE_RESET   0xB
 
#define PS2MOUSE_ENUM   0xC
 
#define PS2MOUSE_SETDBLCLICKTIME   0xD
 
#define PS2MOUSE_GETDBLCLICKTIME   0xE
 
#define PS2MOUSE_GETVERSION   0x20
 

Typedefs

typedef struct _mouse_data mouse_data
 

Detailed Description

USB Mouse Driver for PS2

Definition in file ps2mouse.h.


Data Structure Documentation

◆ _mouse_data

struct _mouse_data

Definition at line 21 of file ps2mouse.h.

Data Fields
s32 x
s32 y
s32 wheel
u32 buttons