Query: poll_joystick
OS: debian
Section: 3alleg4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
poll_joystick(3alleg4) Allegro manual poll_joystick(3alleg4)NAMEpoll_joystick - Polls the joystick. Allegro game programming library.SYNOPSIS#include <allegro.h> int poll_joystick();DESCRIPTIONThe 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 VALUEReturns zero on success or a negative number on failure (usually because no joystick driver was installed).SEE ALSOinstall_joystick(3alleg4), joy(3alleg4), num_joysticks(3alleg4), exjoy(3alleg4) Allegro version 4.4.2 poll_joystick(3alleg4)
Related Man Pages |
---|
install_joystick(3alleg4) - debian |
install_joystick(3alleg4) - opendarwin |
install_joystick(3alleg4) - centos |
exjoy(3alleg4) - php |
exjoy(3alleg4) - redhat |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
Installing Dash Shell on OS X Lion |
How can I do this in VI editor? |
Find columns in a file based on header and print to new file |
Weird 'find' results |