mouse_setdefaulteventhandler3vga
Set a mouse event handler
Part of mouse_seteventhandler(3).
Usage
#include <vgamouse.h>
typedef void (*__mouse_handler) (int button, int dx, int dy, int dz , int drx, int dry, int drz); /* is already in #include <vgamouse.h> included */
void mouse_seteventhandler(__mouse_handler handler);
void mouse_setdefaulteventhandler(void);
Overview
mouse_update(3) and mouse_waitforupdate(3) will call this function for each change of mouse state and you can do your own book keeping and maybe even draw a mouse cursor.
mouse_setdefaulteventhandler() activates the default handler.
Releases
Unchanged in 4 releases since Debian 2.0 (Hamm).