Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

keyboard_needs_poll(3alleg4) [opendarwin man page]

keyboard_needs_poll(3alleg4)					  Allegro manual				      keyboard_needs_poll(3alleg4)

keyboard_needs_poll - Tells if the keyboard needs polling. Allegro game programming library. SYNOPSIS
#include <allegro.h> int keyboard_needs_poll(); DESCRIPTION
Returns TRUE if the current keyboard driver is operating in polling mode. SEE ALSO
poll_keyboard(3alleg4), install_keyboard(3alleg4), key(3alleg4) Allegro version 4.4.2 keyboard_needs_poll(3alleg4)

Check Out this Related Man Page

poll_keyboard(3alleg4)                                            Allegro manual                                            poll_keyboard(3alleg4)

poll_keyboard - Polls the keyboard. Allegro game programming library. SYNOPSIS
#include <allegro.h> int poll_keyboard(); DESCRIPTION
Wherever possible, Allegro will read the keyboard 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 keyboard state variables. To help you test your keyboard 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 keyboard input at all, regardless of whether the current driver actually needs to be polled or not. The keypressed(), readkey(), and ureadkey() functions call poll_keyboard() automatically, so you only need to use this function when accessing the key[] array and key_shifts variable. RETURN VALUE
Returns zero on success, or a negative number on failure (ie. no keyboard driver installed). SEE ALSO
keyboard_needs_poll(3alleg4), install_keyboard(3alleg4), key(3alleg4), key_shifts(3alleg4), excamera(3alleg4), exsample(3alleg4), exs- tars(3alleg4) Allegro version 4.4.2 poll_keyboard(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: ␀␀Word Finder® Plus™. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word Finder® Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies