Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

poll_joystick(3alleg4) [opendarwin man page]

poll_joystick(3alleg4)						  Allegro manual					    poll_joystick(3alleg4)

NAME
poll_joystick - Polls the joystick. Allegro game programming library. SYNOPSIS
#include <allegro.h> int poll_joystick(); DESCRIPTION
The joystick handler is not interrupt driven, so you need to call this function every now and again to update the global position values. Example: do { /* Get joystick input */ poll_joystick(); /* Process input for the first joystick */ if (joy[0].button[0].b) first_button_pressed(); if (joy[0].button[1].b) second_button_pressed(); ... } while(!done); RETURN VALUE
Returns zero on success or a negative number on failure (usually because no joystick driver was installed). SEE ALSO
install_joystick(3alleg4), joy(3alleg4), num_joysticks(3alleg4), exjoy(3alleg4) Allegro version 4.4.2 poll_joystick(3alleg4)

Check Out this Related Man Page

exjoy(3alleg4)							  Allegro manual						    exjoy(3alleg4)

NAME
exjoy - Detecting, calibrating and using joystick input. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exjoy DESCRIPTION
This program uses the Allegro library to detect and read the value of a joystick. The output of the program is a small target sight on the screen which you can move. At the same time the program will tell you what you are doing with the joystick (moving or firing). SEE ALSO
BITMAP(3alleg4), END_OF_MAIN(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_mes- sage(3alleg4), blit(3alleg4), calibrate_joystick(3alleg4), calibrate_joystick_name(3alleg4), circle(3alleg4), clear_bitmap(3alleg4), clear_keybuf(3alleg4), create_bitmap(3alleg4), default_palette(3alleg4), destroy_bitmap(3alleg4), drawing_mode(3alleg4), font(3alleg4), install_joystick(3alleg4), install_keyboard(3alleg4), joy(3alleg4), key(3alleg4), keypressed(3alleg4), num_joysticks(3alleg4), pal- ette_color(3alleg4), poll_joystick(3alleg4), putpixel(3alleg4), readkey(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_pal- ette(3alleg4), textout_centre_ex(3alleg4), textprintf_centre_ex(3alleg4), textprintf_ex(3alleg4) Allegro version 4.4.2 exjoy(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