PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
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

Macro Definition Documentation

◆ PS2MOUSE_READMODE_DIFF

#define PS2MOUSE_READMODE_DIFF   0

Definition at line 28 of file ps2mouse.h.

◆ PS2MOUSE_READMODE_ABS

#define PS2MOUSE_READMODE_ABS   1

Definition at line 29 of file ps2mouse.h.

◆ PS2MOUSE_BTN1

#define PS2MOUSE_BTN1   1

Definition at line 33 of file ps2mouse.h.

◆ PS2MOUSE_BTN2

#define PS2MOUSE_BTN2   2

Definition at line 34 of file ps2mouse.h.

◆ PS2MOUSE_BTN3

#define PS2MOUSE_BTN3   4

Definition at line 35 of file ps2mouse.h.

◆ PS2MOUSE_BTN1DBL

#define PS2MOUSE_BTN1DBL   (PS2MOUSE_BTN1 << 8)

Definition at line 36 of file ps2mouse.h.

◆ PS2MOUSE_BTN2DBL

#define PS2MOUSE_BTN2DBL   (PS2MOUSE_BTN2 << 8)

Definition at line 37 of file ps2mouse.h.

◆ PS2MOUSE_BTN3DBL

#define PS2MOUSE_BTN3DBL   (PS2MOUSE_BTN3 << 8)

Definition at line 38 of file ps2mouse.h.

◆ PS2MOUSE_BIND_RPC_ID

#define PS2MOUSE_BIND_RPC_ID   0x500C001

Definition at line 42 of file ps2mouse.h.

◆ PS2MOUSE_READ

#define PS2MOUSE_READ   0x1

Definition at line 43 of file ps2mouse.h.

◆ PS2MOUSE_SETREADMODE

#define PS2MOUSE_SETREADMODE   0x2

Definition at line 44 of file ps2mouse.h.

◆ PS2MOUSE_GETREADMODE

#define PS2MOUSE_GETREADMODE   0x3

Definition at line 45 of file ps2mouse.h.

◆ PS2MOUSE_SETTHRES

#define PS2MOUSE_SETTHRES   0x4

Definition at line 46 of file ps2mouse.h.

◆ PS2MOUSE_GETTHRES

#define PS2MOUSE_GETTHRES   0x5

Definition at line 47 of file ps2mouse.h.

◆ PS2MOUSE_SETACCEL

#define PS2MOUSE_SETACCEL   0x6

Definition at line 48 of file ps2mouse.h.

◆ PS2MOUSE_GETACCEL

#define PS2MOUSE_GETACCEL   0x7

Definition at line 49 of file ps2mouse.h.

◆ PS2MOUSE_SETBOUNDARY

#define PS2MOUSE_SETBOUNDARY   0x8

Definition at line 50 of file ps2mouse.h.

◆ PS2MOUSE_GETBOUNDARY

#define PS2MOUSE_GETBOUNDARY   0x9

Definition at line 51 of file ps2mouse.h.

◆ PS2MOUSE_SETPOSITION

#define PS2MOUSE_SETPOSITION   0xA

Definition at line 52 of file ps2mouse.h.

◆ PS2MOUSE_RESET

#define PS2MOUSE_RESET   0xB

Definition at line 53 of file ps2mouse.h.

◆ PS2MOUSE_ENUM

#define PS2MOUSE_ENUM   0xC

Definition at line 54 of file ps2mouse.h.

◆ PS2MOUSE_SETDBLCLICKTIME

#define PS2MOUSE_SETDBLCLICKTIME   0xD

Definition at line 55 of file ps2mouse.h.

◆ PS2MOUSE_GETDBLCLICKTIME

#define PS2MOUSE_GETDBLCLICKTIME   0xE

Definition at line 56 of file ps2mouse.h.

◆ PS2MOUSE_GETVERSION

#define PS2MOUSE_GETVERSION   0x20

Definition at line 57 of file ps2mouse.h.