GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  POLL_JOYSTICK (3)

NAME

poll_joystick - Polls the joystick. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

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(3), joy(3), num_joysticks(3), exjoy(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro POLL_JOYSTICK (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.