record AL_JOYSTICK_AXIS_INFO

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type AL_JOYSTICK_AXIS_INFO = record

Description

This provides both analogue input in the pos field (ranging from -128 to 128 or from 0 to 255, depending on the type of the control), and digital values in the d1 and d2 fields. For example, when describing the X-axis position, the pos field will hold the horizontal position of the joystick, d1 will be set if it is moved left, and d2 will be set if it is moved right. Allegro will fill in all these values regardless of whether it is using a digital or analogue joystick, emulating the pos field for digital inputs by snapping it to the min, middle, and maximum positions, and emulating the d1 and d2 values for an analogue stick by comparing the current position with the centre point.

See also
al_joy
Global array of joystick state information, which is updated by the al_poll_joystick function.
AL_JOYSTICK_INFO
information about an entire joystick.

Overview

Fields

pos: AL_INT;
d1: AL_BOOL;
d2: AL_BOOL;
name: AL_STRptr;

Description

Fields

pos: AL_INT;

analogue axis position.

d1: AL_BOOL;

digital axis position.

d2: AL_BOOL;

digital axis position.

name: AL_STRptr;

description of this axis.


Generated by PasDoc 0.13.0 on 2016-07-20 12:01:36