|
|
JoystickALLEGRO_JOYSTICKThis is an abstract data type representing a physical joystick. ALLEGRO_JOYSTICK_STATEThis is a structure that is used to hold a "snapshot" of a joystick's axes and buttons at a particular instant. All fields public and read-only. ALLEGRO_JOYFLAGS
(this enum is a holdover from the old API and may be removed) al_get_joystickGet a handle for joystick number NUM on the system. If successful a pointer to a joystick object is returned. Otherwise NULL is returned. If the joystick was previously 'gotten' (and not yet released) then the returned pointer will be the same as in previous calls. al_get_joystick_axis_nameReturn the name of the given axis. If the axis doesn't exist, NULL is returned. al_get_joystick_button_nameReturn the name of the given button. If the button doesn't exist, NULL is returned. al_get_joystick_nameReturn the name of the given joystick. al_get_joystick_numberReturn the joystick number, i.e. 'i' such that al_get_joystick_stateGet the current joystick state. al_get_joystick_stick_flagsReturn the flags of the given "stick". If the stick doesn't exist, NULL is returned. al_get_joystick_stick_nameReturn the name of the given "stick". If the stick doesn't exist, NULL is returned. al_get_joystick_num_axesReturn the number of axes on the given "stick". If the stick doesn't exist, 0 is returned. al_get_joystick_num_buttonsReturn the number of buttons on the joystick. al_get_joystick_num_sticksReturn the number of "sticks" on the given joystick. al_install_joystickInstall a joystick driver, returning true if successful. If a joystick driver was already installed, returns true immediately. al_get_num_joysticksReturn the number of joysticks on the system (depending on the OS this may not be accurate). Returns 0 if there is no joystick driver installed. al_release_joystickRelease a previously 'gotten' joystick object. al_uninstall_joystickUninstalls the active joystick driver. All outstanding ALLEGRO_JOYSTICKs are automatically released. If no joystick driver was active, this function does nothing. This function is automatically called when Allegro is shut down. al_get_joystick_event_sourceRetrieve the associated event source. |
Last updated: 2009-08-09 08:22:39 UTC