1poll_mouse(3)                   Allegro manual                   poll_mouse(3)
2
3
4

NAME

6       poll_mouse - Polls the mouse. Allegro game programming library.
7

SYNOPSIS

9       #include <allegro.h>
10
11
12       int poll_mouse();
13

DESCRIPTION

15       Wherever  possible,  Allegro  will  read the mouse input asynchronously
16       (ie.  from inside an interrupt handler), but on some platforms that may
17       not  be  possible,  in which case you must call this routine at regular
18       intervals to update the mouse state variables. To help  you  test  your
19       mouse  polling  code  even  if  you  are programming on a platform that
20       doesn't require it, after the first time that you  call  this  function
21       Allegro  will  switch into polling mode, so from that point onwards you
22       will have to call this routine in order to get any mouse input at  all,
23       regardless of whether the current driver actually needs to be polled or
24       not.
25

RETURN VALUE

27       Returns zero on success, or a negative number on failure (ie. no  mouse
28       driver installed).
29
30

SEE ALSO

32       mouse_needs_poll(3),    install_mouse(3),    mouse_x(3),   exlights(3),
33       exmouse(3), exshade(3), exspline(3), extrans(3)
34
35
36
37Allegro                          version 4.2.2                   poll_mouse(3)
Impressum