sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
ps2mouse.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
17
#ifndef __PS2MOUSE_H__
18
#define __PS2MOUSE_H__
19
20
#include <types.h>
21
22
typedef
struct
_mouse_data
23
{
24
s32 x, y;
25
s32 wheel;
26
u32 buttons;
27
} mouse_data;
28
29
#define PS2MOUSE_READMODE_DIFF 0
30
#define PS2MOUSE_READMODE_ABS 1
31
32
/* Define mouse button constants */
33
34
#define PS2MOUSE_BTN1 1
35
#define PS2MOUSE_BTN2 2
36
#define PS2MOUSE_BTN3 4
37
#define PS2MOUSE_BTN1DBL (PS2MOUSE_BTN1 << 8)
38
#define PS2MOUSE_BTN2DBL (PS2MOUSE_BTN2 << 8)
39
#define PS2MOUSE_BTN3DBL (PS2MOUSE_BTN3 << 8)
40
41
/* RPC Defines */
42
43
#define PS2MOUSE_BIND_RPC_ID 0x500C001
44
#define PS2MOUSE_READ 0x1
45
#define PS2MOUSE_SETREADMODE 0x2
46
#define PS2MOUSE_GETREADMODE 0x3
47
#define PS2MOUSE_SETTHRES 0x4
48
#define PS2MOUSE_GETTHRES 0x5
49
#define PS2MOUSE_SETACCEL 0x6
50
#define PS2MOUSE_GETACCEL 0x7
51
#define PS2MOUSE_SETBOUNDARY 0x8
52
#define PS2MOUSE_GETBOUNDARY 0x9
53
#define PS2MOUSE_SETPOSITION 0xA
54
#define PS2MOUSE_RESET 0xB
55
#define PS2MOUSE_ENUM 0xC
56
#define PS2MOUSE_SETDBLCLICKTIME 0xD
57
#define PS2MOUSE_GETDBLCLICKTIME 0xE
58
#define PS2MOUSE_GETVERSION 0x20
59
60
#endif
/* __PS2MOUSE_H__ */
_mouse_data
Definition
ps2mouse.h:23
core
mouse
include
iop
ps2mouse.h
Generated by
1.18.0