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