Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

15 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

Embedded programming

Anyone know any good sources (books, urls, etc) for learning embedded programming, for example with Tornado from Wind River? (3 Replies)
Discussion started by: TioTony
3 Replies

3. Programming

I want a suggestion

I am a student and I love the computer very much , especially in programming. However I know little about programming . I don't know which I should learn (JAVA and C++). Would you like to give me a suggestion ? Thanks! (6 Replies)
Discussion started by: camel
6 Replies

4. Programming

A question on C programming and Outputing variables

I was wondering if someone could show me what I'd need to do in C programming language to output the current values of all of your environment variables and do so in such a way that it will duplicate an "env" command on unix. Does anyone know how and can you share it with me? Thanks in advance. (2 Replies)
Discussion started by: HelpMeIAmLost
2 Replies

5. 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

6. Programming

Beginner C

Anyone know where I can get started in C++ programming in unix? Any good free tutorials or websites to start at? I am okay in unix scripting but have never done c programming of any sort... What are the main advantages of using C++ ? (2 Replies)
Discussion started by: frustrated1
2 Replies

7. Programming

new c++ user that needs help

I'm in a programming class and I have an assignment where I have to open a file, and count the number of times a certain character apperas that the user input, in that file. I need help in figuring out how to create a function to count the number of occurence of a give characeter, and with any... (2 Replies)
Discussion started by: cold16
2 Replies

8. 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

9. 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

10. Programming

get ip

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

11. Programming

C programming question

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

12. Programming

Quick ncurses question

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

13. 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

14. Programming

Help with gcc programming

I need a lot of help with c programming. I have the source code. Running configure, I got one error message about a missing library. I downloaded and successfully compiled it in another dir. Do I throw all the new files into my source dir and run configure again ? Thanks. (3 Replies)
Discussion started by: drew77
3 Replies

15. UNIX for Beginners Questions & Answers

Case inside While read File

Hi Experts, Need your guidance for case statement. I tried many way but no success yet.Now my existing code is doing something like below. Each Line of the input file contains one test case.#!/bin/bash FILE=$1 while read LINE; do do COMMAND done < $FILE Now I want to modify the code... (6 Replies)
Discussion started by: pradyumnajpn10
6 Replies