1vga_getmousetype(3) Svgalib User Manual vga_getmousetype(3)
2
3
4
6 vga_getmousetype - returns the mouse type configured
7
9 #include <vga.h>
10
11 int vga_getmousetype(void);
12
13
15 This returns the mouse type configered in /etc/vga/libvga.config.
16
17 The return value logically anded with MOUSE_TYPE_MASK is one of
18 (defined in (#include <vgamouse.h>):
19
20 MOUSE_NONE
21 There is no mouse installed. It is good style to check if there
22 is no mouse available first and then enable mouse support to
23 avoid an svgalib error message if you try to initialize a non
24 existing mouse. MOUSE_MICROSOFT A Microsoft compatible mouse (2
25 buttons) (default).
26 MOUSE_MOUSESYSTEMS
27 A MouseSystems compatible mouse (3 buttons).
28 MOUSE_MMSERIES
29 A MMSeries compatible mouse.
30 MOUSE_LOGITECH
31 An ordinary LogiTech compatible mouse.
32 MOUSE_BUSMOUSE
33 A busmouse.
34 MOUSE_PS2
35 A PS/2 busmouse.
36 MOUSE_LOGIMAN
37 An ordinary LogiTech LogiMan compatible mouse.
38 MOUSE_GPM
39 The GPM daemon is used.
40 MOUSE_SPACEBALL
41 A 3d SpaceTec Spaceball pointer device.
42 MOUSE_INTELLIMOUSE
43 A Microsoft IntelliMouse or Logitech MouseMan+ on serial port.
44 MOUSE_IMPS2
45 A Microsoft IntelliMouse or Logitech MouseMan+ on PS/2 port.
46
47 The return value may be ored with one or more of the following flags
48
49 MOUSE_CHG_DTR
50 change the setting of DTR to force the mouse to a given mode.
51 MOUSE_DTR_HIGH
52 set DTR to high instead of setting it to low (default).
53 MOUSE_CHG_RTS
54 change the setting of RTS to force the mouse to a given mode.
55 MOUSE_RTS_HIGH
56 set RTS to high instead of setting it to low (default).
57
58 Your application may use this info to perform specific actions (go into
59 a 3d pointer device mode for example).
60
62 svgalib(7), vgagl(7), libvga.config(5), mousetest(6), spin(6),
63 mouse_close(3), mouse_getposition_6d(3), mouse_getx(3), mouse_init(3),
64 mouse_setposition(3), mouse_setscale(3), mouse_setwrap(3),
65 mouse_setxrange(3), mouse_update(3), mouse_waitforupdate(3),
66 vga_init(3), vga_setmousesupport(3), vga_waitevent(3)
67
68
70 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
71 essen.de>. The exact source of the referenced function as well as of
72 the original documentation is unknown.
73
74 It is very likely that both are at least to some extent are due to Harm
75 Hanemaayer <H.Hanemaayer@inter.nl.net>.
76
77 Occasionally this might be wrong. I hereby asked to be excused by the
78 original author and will happily accept any additions or corrections to
79 this first version of the svgalib manual.
80
81
82
83Svgalib (>= 1.2.11) 27 July 1997 vga_getmousetype(3)