poll_mouse(3alleg4) Allegro manual poll_mouse(3alleg4)NAME
poll_mouse - Polls the mouse. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int poll_mouse();
DESCRIPTION
Wherever possible, Allegro will read the mouse input asynchronously (ie. from inside an interrupt handler), but on some platforms that may
not be possible, in which case you must call this routine at regular intervals to update the mouse state variables. To help you test your
mouse polling code even if you are programming on a platform that doesn't require it, after the first time that you call this function
Allegro will switch into polling mode, so from that point onwards you will have to call this routine in order to get any mouse input at
all, regardless of whether the current driver actually needs to be polled or not.
RETURN VALUE
Returns zero on success, or a negative number on failure (ie. no mouse driver installed).
SEE ALSO mouse_needs_poll(3alleg4), install_mouse(3alleg4), mouse_x(3alleg4), exlights(3alleg4), exmouse(3alleg4), exshade(3alleg4), exs-
pline(3alleg4), extrans(3alleg4)Allegro version 4.4.2 poll_mouse(3alleg4)
Check Out this Related Man Page
poll_mouse(3alleg4) Allegro manual poll_mouse(3alleg4)NAME
poll_mouse - Polls the mouse. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int poll_mouse();
DESCRIPTION
Wherever possible, Allegro will read the mouse input asynchronously (ie. from inside an interrupt handler), but on some platforms that may
not be possible, in which case you must call this routine at regular intervals to update the mouse state variables. To help you test your
mouse polling code even if you are programming on a platform that doesn't require it, after the first time that you call this function
Allegro will switch into polling mode, so from that point onwards you will have to call this routine in order to get any mouse input at
all, regardless of whether the current driver actually needs to be polled or not.
RETURN VALUE
Returns zero on success, or a negative number on failure (ie. no mouse driver installed).
SEE ALSO mouse_needs_poll(3alleg4), install_mouse(3alleg4), mouse_x(3alleg4), exlights(3alleg4), exmouse(3alleg4), exshade(3alleg4), exs-
pline(3alleg4), extrans(3alleg4)Allegro version 4.4.2 poll_mouse(3alleg4)
i would like advice on the usbject of c programming (in the middle of reading a book on C). could i benefit more if i apply that knowledge in the unix format if i were able to, or would that take the point out of learning C, basically I want to stay away from strying too far away from unix and use... (1 Reply)
Can somebody write a solution how to deal with negative unixdates in C/C++?
e.g. I should convert -222832800 into 12-10-1962.
I've read some texts about unixdate. They say that negative values are not officially supported, some functions use -1 to report a conversion error. How can I use this... (3 Replies)
Hi. You may know how to detect when a interruption succeeded programming in C. Just like receiving a signal without blocking. Knowing when it was a keystroke (IRQ 2), or a mouse movement (12), or a disk access, etc. and getting actually for example the letter typed.
Thanks a lot. (7 Replies)
Is there a way to use the mouse in tty1 with the ncurses library? I can use mouse event features only in x terminals because theres no mouse pointer in tty1. (2 Replies)
Hello,
This is very silly question as millions discussions on call-by-value vs call-by-reference for programming beginners, but I need to confirm my understanding.
#include<stdio.h>
void swap(int *p, int *q) //Line 3
{
int tmp;
tmp = *p;
*p = *q;
*q = tmp;
}
int... (15 Replies)