Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

poll_mouse(3alleg4) [v7 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)

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)
Man Page

8 More Discussions You Might Find Interesting

1. Programming

what does for( ; ; ) mean?

what does for( ; ; ) mean? thanks (2 Replies)
Discussion started by: dell9
2 Replies

2. Programming

c programming or unix programming!?

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)
Discussion started by: moxxx68
1 Replies

3. Programming

UNIX time in C/C++

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)
Discussion started by: Agler
3 Replies

4. Programming

Detecting interruptions in C

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)
Discussion started by: Ashrentum
7 Replies

5. UNIX for Dummies Questions & Answers

programming

how to program a computer?? im a new on programming...can u help me.... (2 Replies)
Discussion started by: cyanoticruz
2 Replies

6. Programming

get ip

does exists a system call to get the IP? (3 Replies)
Discussion started by: DNAx86
3 Replies

7. Programming

C programming question

How do I find multiples of a number in C programming? Thanks (4 Replies)
Discussion started by: Aseda
4 Replies

8. Programming

Swap call by reference confusion

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)
Discussion started by: yifangt
15 Replies