Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
mouse_callback(3)		 Allegro manual 	       mouse_callback(3)

NAME
     mouse_callback  -	User  specified mouse callback. Allegro game programming
     library.

SYNOPSIS
     #include <allegro.h>

     extern void (*mouse_callback)(int flags);

DESCRIPTION
     Called by the interrupt handler whenever the mouse moves or one of the but-
     tons changes state. This function must be in locked memory, and  must  exe-
     cute  _very_ quickly! It is passed the event flags that triggered the call,
     which  is	a  bitmask  containing	any  of  the   values	MOUSE_FLAG_MOVE,
     MOUSE_FLAG_LEFT_DOWN,	 MOUSE_FLAG_LEFT_UP,	  MOUSE_FLAG_RIGHT_DOWN,
     MOUSE_FLAG_RIGHT_UP,  MOUSE_FLAG_MIDDLE_DOWN,   MOUSE_FLAG_MIDDLE_UP,   and
     MOUSE_FLAG_MOVE_Z. Note that even if the mouse has more than three buttons,
     only the first three can be trapped using a callback.

SEE ALSO
     install_mouse(3)

Allegro 			  version 4.4.3 	       mouse_callback(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mouse_callback&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help