1mouse_init(3) Svgalib User Manual mouse_init(3)
2
3
4
6 mouse_init, mouse_init_return_fd - specifically initialize a mouse
7
9 #include <vgamouse.h>
10
11 int mouse_init(char *dev, int type, int samplerate);
12 int mouse_init_return_fd(char *dev, int type, int samplerate);
13
14
16 These routines can be used to open the mouse manually, ignoring the
17 mouse types or devices specified in the config file.
18
19 dev is the name of the mouse device (defaults to /dev_mouse).
20
21 samplerate may be one MOUSE_DEFAULTSAMPLERATE(150) or any other value.
22 Probably it is in Hz.
23
24 type is one of the types which are listed already in vga_getmouse‐
25 type(3).
26
27 If these routines are used it is not necessary to call vga_setmousesup‐
28 port(3), but it's probably better to not use these and use vga_setmous‐
29 esupport(3) instead.
30
31 The return_fd version returns the file descriptor of the mouse device
32 to allow you to do further tricks with the mouse (but the filehandle
33 may change during a VC switch). The other version just returns 0 if
34 successful. Both return -1 on error.
35
37 svgalib(7), vgagl(7), libvga.config(5), eventtest(6), mouse_close(3),
38 mouse_getposition_6d(3), mouse_getx(3), mouse_setposition(3),
39 mouse_setscale(3), mouse_setwrap(3), mouse_setxrange(3),
40 mouse_update(3), mouse_waitforupdate(3), vga_setmousesupport(3),
41 mouse_seteventhandler(3), vga_waitevent(3)
42
44 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
45 essen.de>. The exact source of the referenced function as well as of
46 the original documentation is unknown.
47
48 It is very likely that both are at least to some extent are due to Harm
49 Hanemaayer <H.Hanemaayer@inter.nl.net>.
50
51 Occasionally this might be wrong. I hereby asked to be excused by the
52 original author and will happily accept any additions or corrections to
53 this first version of the svgalib manual.
54
55
56
57Svgalib (>= 1.2.11) 27 July 1997 mouse_init(3)