1mouse_seteventhandler(3)      Svgalib User Manual     mouse_seteventhandler(3)
2
3
4

NAME

6       mouse_seteventhandler, mouse_setdefaulteventhandler - set a mouse event
7       handler
8

SYNOPSIS

10       #include <vgamouse.h>
11
12       typedef void (*__mouse_handler) (int button, int dx, int dy, int  dz  ,
13       int  drx,  int  dry,  int  drz); /* is already in #include <vgamouse.h>
14       included */
15
16       void mouse_seteventhandler(__mouse_handler handler);
17       void mouse_setdefaulteventhandler(void);
18
19

DESCRIPTION

21       mouse_update(3) and mouse_waitforupdate(3) will call this function  for
22       each  change  of  mouse  state and you can do your own book keeping and
23       maybe even draw a mouse cursor.
24
25       mouse_setdefaulteventhandler() activates the default handler.
26

SEE ALSO

28       svgalib(7), vgagl(7), libvga.config(5),  eventtest(6),  mouse_close(3),
29       mouse_init(3),      mouse_getposition_6d(3),      mouse_setposition(3),
30       mouse_setscale(3), mouse_setwrap(3), mouse_setxrange(3), mouse_getx(3),
31       mouse_update(3),     mouse_waitforupdate(3),    vga_setmousesupport(3),
32       vga_waitevent(3)
33

AUTHOR

35       This manual page was edited  by  Michael  Weller  <eowmob@exp-math.uni-
36       essen.de>.  The  exact  source of the referenced function as well as of
37       the original documentation is unknown.
38
39       It is very likely that both are at least to some extent are due to Harm
40       Hanemaayer <H.Hanemaayer@inter.nl.net>.
41
42       Occasionally  this  might be wrong. I hereby asked to be excused by the
43       original author and will happily accept any additions or corrections to
44       this first version of the svgalib manual.
45
46
47
48Svgalib (>= 1.2.11)              27 July 1997         mouse_seteventhandler(3)
Impressum