mouse.h revision 145001
12606Sdfr/*-
22606Sdfr * Copyright (c) 1992, 1993 Erik Forsberg.
331603Syokota * Copyright (c) 1996, 1997 Kazutaka YOKOTA
42606Sdfr * All rights reserved.
52606Sdfr *
62606Sdfr * Redistribution and use in source and binary forms, with or without
72606Sdfr * modification, are permitted provided that the following conditions
82606Sdfr * are met:
92606Sdfr * 1. Redistributions of source code must retain the above copyright
102606Sdfr *    notice, this list of conditions and the following disclaimer.
112606Sdfr *
122606Sdfr * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED
132606Sdfr * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
142606Sdfr * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
152606Sdfr * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
162606Sdfr * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
172606Sdfr * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
182606Sdfr * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
192606Sdfr * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
202606Sdfr * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
212606Sdfr * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
222606Sdfr *
2350477Speter * $FreeBSD: head/sys/sys/mouse.h 145001 2005-04-13 07:25:45Z mdodd $
242606Sdfr */
252606Sdfr
2666860Sphk#ifndef _SYS_MOUSE_H_
2766860Sphk#define _SYS_MOUSE_H_
2819753Ssos
2919753Ssos#include <sys/types.h>
3019753Ssos#include <sys/ioccom.h>
3119753Ssos
3231603Syokota/* ioctls */
3331603Syokota#define MOUSE_GETSTATUS		_IOR('M', 0, mousestatus_t)
3431603Syokota#define MOUSE_GETHWINFO		_IOR('M', 1, mousehw_t)
3531603Syokota#define MOUSE_GETMODE		_IOR('M', 2, mousemode_t)
3631603Syokota#define MOUSE_SETMODE		_IOW('M', 3, mousemode_t)
3731603Syokota#define MOUSE_GETLEVEL		_IOR('M', 4, int)
3831603Syokota#define MOUSE_SETLEVEL		_IOW('M', 5, int)
3931603Syokota#define MOUSE_GETVARS		_IOR('M', 6, mousevar_t)
4031603Syokota#define MOUSE_SETVARS		_IOW('M', 7, mousevar_t)
4131603Syokota#define MOUSE_READSTATE		_IOWR('M', 8, mousedata_t)
4231603Syokota#define MOUSE_READDATA		_IOWR('M', 9, mousedata_t)
4319753Ssos
4431603Syokota#if notyet
4531603Syokota#define MOUSE_SETRESOLUTION	_IOW('M', 10, int)
4631603Syokota#define MOUSE_SETSCALING	_IOW('M', 11, int)
4731603Syokota#define MOUSE_SETRATE		_IOW('M', 12, int)
4831603Syokota#define MOUSE_GETHWID		_IOR('M', 13, int)
4931603Syokota#endif
5019753Ssos
51132865Snjl#define MOUSE_SYN_GETHWINFO	_IOR('M', 100, synapticshw_t)
52132865Snjl
5320073Ssos/* mouse status block */
5420073Ssostypedef struct mousestatus {
5531603Syokota    int     flags;		/* state change flags */
5620073Ssos    int     button;		/* button status */
5720073Ssos    int     obutton;		/* previous button status */
5820073Ssos    int     dx;			/* x movement */
5920073Ssos    int     dy;			/* y movement */
6031603Syokota    int     dz;			/* z movement */
6120073Ssos} mousestatus_t;
6221327Snate
6320073Ssos/* button */
6420073Ssos#define MOUSE_BUTTON1DOWN	0x0001	/* left */
6520073Ssos#define MOUSE_BUTTON2DOWN	0x0002	/* middle */
6620073Ssos#define MOUSE_BUTTON3DOWN	0x0004	/* right */
6720073Ssos#define MOUSE_BUTTON4DOWN	0x0008
6820073Ssos#define MOUSE_BUTTON5DOWN	0x0010
6920073Ssos#define MOUSE_BUTTON6DOWN	0x0020
7020073Ssos#define MOUSE_BUTTON7DOWN	0x0040
7120073Ssos#define MOUSE_BUTTON8DOWN	0x0080
7231603Syokota#define MOUSE_MAXBUTTON		31
7331603Syokota#define MOUSE_STDBUTTONS	0x0007		/* buttons 1-3 */
7431603Syokota#define MOUSE_EXTBUTTONS	0x7ffffff8	/* the others (28 of them!) */
7531603Syokota#define MOUSE_BUTTONS		(MOUSE_STDBUTTONS | MOUSE_EXTBUTTONS)
7620073Ssos
7731603Syokota/* flags */
7831603Syokota#define MOUSE_STDBUTTONSCHANGED	MOUSE_STDBUTTONS
7931603Syokota#define MOUSE_EXTBUTTONSCHANGED	MOUSE_EXTBUTTONS
8031603Syokota#define MOUSE_BUTTONSCHANGED	MOUSE_BUTTONS
8131603Syokota#define MOUSE_POSCHANGED	0x80000000
8231603Syokota
8319753Ssostypedef struct mousehw {
8431603Syokota	int buttons;		/* -1 if unknown */
8519753Ssos	int iftype;		/* MOUSE_IF_XXX */
8619753Ssos	int type;		/* mouse/track ball/pad... */
8731603Syokota	int model;		/* I/F dependent model ID: MOUSE_MODEL_XXX */
8819753Ssos	int hwid;		/* I/F dependent hardware ID
8921327Snate				 * for the PS/2 mouse, it will be PSM_XXX_ID
9021327Snate				 */
9119753Ssos} mousehw_t;
9221327Snate
93132865Snjltypedef struct synapticshw {
94132865Snjl	int infoMajor;
95132865Snjl	int infoMinor;
96132865Snjl	int infoRot180;
97132865Snjl	int infoPortrait;
98132865Snjl	int infoSensor;
99132865Snjl	int infoHardware;
100132865Snjl	int infoNewAbs;
101132865Snjl	int capPen;
102132865Snjl	int infoSimplC;
103132865Snjl	int infoGeometry;
104132865Snjl	int capExtended;
105132865Snjl	int capSleep;
106132865Snjl	int capFourButtons;
107132865Snjl	int capMultiFinger;
108132865Snjl	int capPalmDetect;
109132865Snjl	int capPassthrough;
110132865Snjl} synapticshw_t;
111132865Snjl
11219753Ssos/* iftype */
11331603Syokota#define MOUSE_IF_UNKNOWN	(-1)
11419753Ssos#define MOUSE_IF_SERIAL		0
11519753Ssos#define MOUSE_IF_BUS		1
11619753Ssos#define MOUSE_IF_INPORT		2
11719753Ssos#define MOUSE_IF_PS2		3
11831603Syokota#define MOUSE_IF_SYSMOUSE	4
11944186Sn_hibma#define MOUSE_IF_USB		5
12021327Snate
12119753Ssos/* type */
12219753Ssos#define MOUSE_UNKNOWN		(-1)	/* should be treated as a mouse */
12319753Ssos#define MOUSE_MOUSE		0
12419753Ssos#define MOUSE_TRACKBALL		1
12519753Ssos#define MOUSE_STICK		2
12619753Ssos#define MOUSE_PAD		3
1272606Sdfr
12831603Syokota/* model */
12931603Syokota#define MOUSE_MODEL_UNKNOWN		(-1)
13031603Syokota#define MOUSE_MODEL_GENERIC		0
13131603Syokota#define MOUSE_MODEL_GLIDEPOINT		1
13231603Syokota#define MOUSE_MODEL_NETSCROLL		2
13331603Syokota#define MOUSE_MODEL_NET			3
13431603Syokota#define MOUSE_MODEL_INTELLI		4
13531603Syokota#define MOUSE_MODEL_THINK		5
13631603Syokota#define MOUSE_MODEL_EASYSCROLL		6
13731603Syokota#define MOUSE_MODEL_MOUSEMANPLUS	7
13841271Syokota#define MOUSE_MODEL_KIDSPAD		8
13949964Syokota#define MOUSE_MODEL_VERSAPAD		9
14058230Syokota#define MOUSE_MODEL_EXPLORER		10
14158230Syokota#define MOUSE_MODEL_4D			11
14258230Syokota#define MOUSE_MODEL_4DPLUS		12
143132865Snjl#define MOUSE_MODEL_SYNAPTICS		13
14431603Syokota
14519753Ssostypedef struct mousemode {
14619753Ssos	int protocol;		/* MOUSE_PROTO_XXX */
14719753Ssos	int rate;		/* report rate (per sec), -1 if unknown */
14831603Syokota	int resolution;		/* MOUSE_RES_XXX, -1 if unknown */
14919753Ssos	int accelfactor;	/* accelation factor (must be 1 or greater) */
15031603Syokota	int level;		/* driver operation level */
15131603Syokota	int packetsize;		/* the length of the data packet */
15231603Syokota	unsigned char syncmask[2]; /* sync. data bits in the header byte */
15319753Ssos} mousemode_t;
15421327Snate
15519753Ssos/* protocol */
15658230Syokota/*
15758230Syokota * Serial protocols:
15858230Syokota *   Microsoft, MouseSystems, Logitech, MM series, MouseMan, Hitachi Tablet,
15958230Syokota *   GlidePoint, IntelliMouse, Thinking Mouse, MouseRemote, Kidspad,
16058230Syokota *   VersaPad
16158230Syokota * Bus mouse protocols:
16258230Syokota *   bus, InPort
16358230Syokota * PS/2 mouse protocol:
16458230Syokota *   PS/2
16558230Syokota */
16631603Syokota#define MOUSE_PROTO_UNKNOWN	(-1)
16719753Ssos#define MOUSE_PROTO_MS		0	/* Microsoft Serial, 3 bytes */
16819753Ssos#define MOUSE_PROTO_MSC		1	/* Mouse Systems, 5 bytes */
16919753Ssos#define MOUSE_PROTO_LOGI	2	/* Logitech, 3 bytes */
17019753Ssos#define MOUSE_PROTO_MM		3	/* MM series, 3 bytes */
17119753Ssos#define MOUSE_PROTO_LOGIMOUSEMAN 4	/* Logitech MouseMan 3/4 bytes */
17219753Ssos#define MOUSE_PROTO_BUS		5	/* MS/Logitech bus mouse */
17331603Syokota#define MOUSE_PROTO_INPORT	6	/* MS/ATI InPort mouse */
17419753Ssos#define MOUSE_PROTO_PS2		7	/* PS/2 mouse, 3 bytes */
17531603Syokota#define MOUSE_PROTO_HITTAB	8	/* Hitachi Tablet 3 bytes */
17631603Syokota#define MOUSE_PROTO_GLIDEPOINT	9	/* ALPS GlidePoint, 3/4 bytes */
17731603Syokota#define MOUSE_PROTO_INTELLI	10	/* MS IntelliMouse, 4 bytes */
17831603Syokota#define MOUSE_PROTO_THINK	11	/* Kensignton Thinking Mouse, 3/4 bytes */
17931603Syokota#define MOUSE_PROTO_SYSMOUSE	12	/* /dev/sysmouse */
18036991Sahasty#define MOUSE_PROTO_X10MOUSEREM	13	/* X10 MouseRemote, 3 bytes */
18141271Syokota#define MOUSE_PROTO_KIDSPAD	14	/* Genius Kidspad */
18249964Syokota#define MOUSE_PROTO_VERSAPAD	15	/* Interlink VersaPad, 6 bytes */
18393071Swill#define MOUSE_PROTO_JOGDIAL	16	/* Vaio's JogDial */
184145001Smdodd#define MOUSE_PROTO_GTCO_DIGIPAD	17
18519753Ssos
18631603Syokota#define MOUSE_RES_UNKNOWN	(-1)
18731603Syokota#define MOUSE_RES_DEFAULT	0
18831603Syokota#define MOUSE_RES_LOW		(-2)
18931603Syokota#define MOUSE_RES_MEDIUMLOW	(-3)
19031603Syokota#define MOUSE_RES_MEDIUMHIGH	(-4)
19131603Syokota#define MOUSE_RES_HIGH		(-5)
19231603Syokota
19331603Syokotatypedef struct mousedata {
19431603Syokota	int len;		/* # of data in the buffer */
19531603Syokota	int buf[16];		/* data buffer */
19631603Syokota} mousedata_t;
19731603Syokota
19831603Syokota#if (defined(MOUSE_GETVARS))
19931603Syokota
20031603Syokotatypedef struct mousevar {
20131603Syokota	int var[16];
20231603Syokota} mousevar_t;
20331603Syokota
20431603Syokota/* magic numbers in var[0] */
20531603Syokota#define MOUSE_VARS_PS2_SIG	0x00325350	/* 'PS2' */
20631603Syokota#define MOUSE_VARS_BUS_SIG	0x00535542	/* 'BUS' */
20731603Syokota#define MOUSE_VARS_INPORT_SIG	0x00504e49	/* 'INP' */
20831603Syokota
20931603Syokota#endif /* MOUSE_GETVARS */
21031603Syokota
211132865Snjl/* Synaptics Touchpad */
212132865Snjl#define MOUSE_SYNAPTICS_PACKETSIZE	6	/* '3' works better */
213132865Snjl
21419753Ssos/* Microsoft Serial mouse data packet */
21519753Ssos#define MOUSE_MSS_PACKETSIZE	3
21619753Ssos#define MOUSE_MSS_SYNCMASK	0x40
21719753Ssos#define MOUSE_MSS_SYNC		0x40
21819753Ssos#define MOUSE_MSS_BUTTONS	0x30
21919753Ssos#define MOUSE_MSS_BUTTON1DOWN	0x20	/* left */
22019753Ssos#define MOUSE_MSS_BUTTON2DOWN	0x00	/* no middle button */
22119753Ssos#define MOUSE_MSS_BUTTON3DOWN	0x10	/* right */
22219753Ssos
22320073Ssos/* Logitech MouseMan data packet (M+ protocol) */
22431603Syokota#define MOUSE_LMAN_BUTTON2DOWN	0x20	/* middle button, the 4th byte */
22520073Ssos
22679298Sdd/* ALPS GlidePoint extension (variant of M+ protocol) */
22731603Syokota#define MOUSE_ALPS_BUTTON2DOWN	0x20	/* middle button, the 4th byte */
22831603Syokota#define MOUSE_ALPS_TAP		0x10	/* `tapping' action, the 4th byte */
22931603Syokota
23079298Sdd/* Kinsington Thinking Mouse extension (variant of M+ protocol) */
23131603Syokota#define MOUSE_THINK_BUTTON2DOWN 0x20	/* lower-left button, the 4th byte */
23231603Syokota#define MOUSE_THINK_BUTTON4DOWN 0x10	/* lower-right button, the 4th byte */
23331603Syokota
23431603Syokota/* MS IntelliMouse (variant of MS Serial) */
23531603Syokota#define MOUSE_INTELLI_PACKETSIZE 4
23658230Syokota#define MOUSE_INTELLI_BUTTON2DOWN 0x10	/* middle button in the 4th byte */
23731603Syokota
23819753Ssos/* Mouse Systems Corp. mouse data packet */
23919753Ssos#define MOUSE_MSC_PACKETSIZE	5
24019753Ssos#define MOUSE_MSC_SYNCMASK	0xf8
24119753Ssos#define MOUSE_MSC_SYNC		0x80
24219753Ssos#define MOUSE_MSC_BUTTONS	0x07
24319753Ssos#define MOUSE_MSC_BUTTON1UP	0x04	/* left */
24419753Ssos#define MOUSE_MSC_BUTTON2UP	0x02	/* middle */
24519753Ssos#define MOUSE_MSC_BUTTON3UP	0x01	/* right */
24644186Sn_hibma#define MOUSE_MSC_MAXBUTTON	3
24719753Ssos
24820073Ssos/* MM series mouse data packet */
24920073Ssos#define MOUSE_MM_PACKETSIZE	3
25020073Ssos#define MOUSE_MM_SYNCMASK	0xe0
25120073Ssos#define MOUSE_MM_SYNC		0x80
25220073Ssos#define MOUSE_MM_BUTTONS	0x07
25320073Ssos#define MOUSE_MM_BUTTON1DOWN	0x04	/* left */
25420073Ssos#define MOUSE_MM_BUTTON2DOWN	0x02	/* middle */
25520073Ssos#define MOUSE_MM_BUTTON3DOWN	0x01	/* right */
25620073Ssos#define MOUSE_MM_XPOSITIVE	0x10
25720073Ssos#define MOUSE_MM_YPOSITIVE	0x08
25820073Ssos
25919753Ssos/* PS/2 mouse data packet */
26019753Ssos#define MOUSE_PS2_PACKETSIZE	3
26131603Syokota#define MOUSE_PS2_SYNCMASK	0xc8
26231603Syokota#define MOUSE_PS2_SYNC		0x08
26319753Ssos#define MOUSE_PS2_BUTTONS	0x07	/* 0x03 for 2 button mouse */
26419753Ssos#define MOUSE_PS2_BUTTON1DOWN	0x01	/* left */
26519753Ssos#define MOUSE_PS2_BUTTON2DOWN	0x04	/* middle */
26619753Ssos#define MOUSE_PS2_BUTTON3DOWN	0x02	/* right */
26731603Syokota#define MOUSE_PS2_TAP		MOUSE_PS2_SYNC /* GlidePoint (PS/2) `tapping'
26831603Syokota					        * Yes! this is the same bit
26931603Syokota						* as SYNC!
27031603Syokota					 	*/
27131603Syokota
27219753Ssos#define MOUSE_PS2_XNEG		0x10
27319753Ssos#define MOUSE_PS2_YNEG		0x20
27419753Ssos#define MOUSE_PS2_XOVERFLOW	0x40
27519753Ssos#define MOUSE_PS2_YOVERFLOW	0x80
27658230Syokota
27758230Syokota/* Logitech MouseMan+ (PS/2) data packet (PS/2++ protocol) */
27848778Syokota#define MOUSE_PS2PLUS_SYNCMASK	0x48
27948778Syokota#define MOUSE_PS2PLUS_SYNC	0x48
28058230Syokota#define MOUSE_PS2PLUS_ZNEG	0x08	/* sign bit */
28158230Syokota#define MOUSE_PS2PLUS_BUTTON4DOWN 0x10	/* 4th button on MouseMan+ */
28258230Syokota#define MOUSE_PS2PLUS_BUTTON5DOWN 0x20
28319753Ssos
28458230Syokota/* IBM ScrollPoint (PS/2) also uses PS/2++ protocol */
28558230Syokota#define MOUSE_SPOINT_ZNEG	0x80	/* sign bits */
28658230Syokota#define MOUSE_SPOINT_WNEG	0x08
28758230Syokota
28858230Syokota/* MS IntelliMouse (PS/2) data packet */
28958230Syokota#define MOUSE_PS2INTELLI_PACKETSIZE 4
29058230Syokota/* some compatible mice have additional buttons */
29158230Syokota#define MOUSE_PS2INTELLI_BUTTON4DOWN 0x40
29258230Syokota#define MOUSE_PS2INTELLI_BUTTON5DOWN 0x80
29358230Syokota
29458230Syokota/* MS IntelliMouse Explorer (PS/2) data packet (variation of IntelliMouse) */
29558230Syokota#define MOUSE_EXPLORER_ZNEG	0x08	/* sign bit */
29658230Syokota/* IntelliMouse Explorer has additional button data in the fourth byte */
29758230Syokota#define MOUSE_EXPLORER_BUTTON4DOWN 0x10
29858230Syokota#define MOUSE_EXPLORER_BUTTON5DOWN 0x20
29958230Syokota
30049964Syokota/* Interlink VersaPad (serial I/F) data packet */
30149964Syokota#define MOUSE_VERSA_PACKETSIZE	6
30249964Syokota#define MOUSE_VERSA_IN_USE	0x04
30349964Syokota#define MOUSE_VERSA_SYNCMASK	0xc3
30449964Syokota#define MOUSE_VERSA_SYNC	0xc0
30549964Syokota#define MOUSE_VERSA_BUTTONS	0x30
30649964Syokota#define MOUSE_VERSA_BUTTON1DOWN	0x20	/* left */
30749964Syokota#define MOUSE_VERSA_BUTTON2DOWN	0x00	/* middle */
30849964Syokota#define MOUSE_VERSA_BUTTON3DOWN	0x10	/* right */
30949964Syokota#define MOUSE_VERSA_TAP		0x08
31049964Syokota
31149964Syokota/* Interlink VersaPad (PS/2 I/F) data packet */
31249964Syokota#define MOUSE_PS2VERSA_PACKETSIZE	6
31349964Syokota#define MOUSE_PS2VERSA_IN_USE		0x10
31449964Syokota#define MOUSE_PS2VERSA_SYNCMASK		0xe8
31549964Syokota#define MOUSE_PS2VERSA_SYNC		0xc8
31649964Syokota#define MOUSE_PS2VERSA_BUTTONS		0x05
31749964Syokota#define MOUSE_PS2VERSA_BUTTON1DOWN	0x04	/* left */
31849964Syokota#define MOUSE_PS2VERSA_BUTTON2DOWN	0x00	/* middle */
31949964Syokota#define MOUSE_PS2VERSA_BUTTON3DOWN	0x01	/* right */
32049964Syokota#define MOUSE_PS2VERSA_TAP		0x02
32149964Syokota
32258230Syokota/* A4 Tech 4D Mouse (PS/2) data packet */
32358230Syokota#define MOUSE_4D_PACKETSIZE		3
32458230Syokota#define MOUSE_4D_WHEELBITS		0xf0
32558230Syokota
32658230Syokota/* A4 Tech 4D+ Mouse (PS/2) data packet */
32758230Syokota#define MOUSE_4DPLUS_PACKETSIZE		3
32858230Syokota#define MOUSE_4DPLUS_ZNEG		0x04	/* sign bit */
32958230Syokota#define MOUSE_4DPLUS_BUTTON4DOWN	0x08
33058230Syokota
33131603Syokota/* sysmouse extended data packet */
33231603Syokota/*
33331603Syokota * /dev/sysmouse sends data in two formats, depending on the protocol
33431603Syokota * level.  At the level 0, format is exactly the same as MousSystems'
33531603Syokota * five byte packet.  At the level 1, the first five bytes are the same
33631603Syokota * as at the level 0.  There are additional three bytes which shows
33731603Syokota * `dz' and the states of additional buttons.  `dz' is expressed as the
33831603Syokota * sum of the byte 5 and 6 which contain signed seven bit values.
33931603Syokota * The states of the button 4 though 10 are in the bit 0 though 6 in
34031603Syokota * the byte 7 respectively: 1 indicates the button is up.
34131603Syokota */
34231603Syokota#define MOUSE_SYS_PACKETSIZE	8
34331603Syokota#define MOUSE_SYS_SYNCMASK	0xf8
34431603Syokota#define MOUSE_SYS_SYNC		0x80
34531603Syokota#define MOUSE_SYS_BUTTON1UP	0x04	/* left, 1st byte */
34631603Syokota#define MOUSE_SYS_BUTTON2UP	0x02	/* middle, 1st byte */
34731603Syokota#define MOUSE_SYS_BUTTON3UP	0x01	/* right, 1st byte */
34831603Syokota#define MOUSE_SYS_BUTTON4UP	0x0001	/* 7th byte */
34931603Syokota#define MOUSE_SYS_BUTTON5UP	0x0002
35031603Syokota#define MOUSE_SYS_BUTTON6UP	0x0004
35131603Syokota#define MOUSE_SYS_BUTTON7UP	0x0008
35231603Syokota#define MOUSE_SYS_BUTTON8UP	0x0010
35331603Syokota#define MOUSE_SYS_BUTTON9UP	0x0020
35431603Syokota#define MOUSE_SYS_BUTTON10UP	0x0040
35531603Syokota#define MOUSE_SYS_MAXBUTTON	10
35631603Syokota#define MOUSE_SYS_STDBUTTONS	0x07
35731603Syokota#define MOUSE_SYS_EXTBUTTONS	0x7f	/* the others */
35831603Syokota
35936991Sahasty/* Mouse remote socket */
36036991Sahasty#define _PATH_MOUSEREMOTE	"/var/run/MouseRemote"
36136991Sahasty
36266860Sphk#endif /* _SYS_MOUSE_H_ */
363