mouse_callback (3) - Linux Manuals
mouse_callback: User specified mouse callback. Allegro game programming library.
Command to display mouse_callback
manual in Linux: $ man 3 mouse_callback
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
buttons changes state. This function must be in locked memory, and must
execute _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.
Pages related to mouse_callback
- mouse_b (3) - Global variable with the mouse position/button state. Allegro game programming library.
- mouse_pos (3) - Global variable with the mouse position/button state. Allegro game programming library.
- mouse_sprite (3) - Global variable with the mouse sprite and focus point. Allegro game programming library.
- mouse_w (3) - Global variable with the mouse position/button state. Allegro game programming library.
- mouse_x (3) - Global variable with the mouse position/button state. Allegro game programming library.
- mouse_x_focus (3) - Global variable with the mouse sprite and focus point. Allegro game programming library.
- mouse_y (3) - Global variable with the mouse position/button state. Allegro game programming library.
- mouse_y_focus (3) - Global variable with the mouse sprite and focus point. Allegro game programming library.
- mouse_z (3) - Global variable with the mouse position/button state. Allegro game programming library.
- mode2Char (3)