Warning: This site is under construction, most links will be broken.

LightX API -> lxinputjoypadxinput

Last modified on Tue, 8th May 2007 at 13:32 UTC by zipplet

Unit: lxinputjoypadxinput.pas
Required libraries in search path: None

Description


Using the new Xinput API from Microsoft, lxinputjoypadxinput provides full support for the xbox 360 gamepad - proper independent control of both rumble motors, and independent access to both analog triggers.

4 controllers are supported and are mapped to the ID's 0 - 3.

On systems without XInput support, creating this class will not cause an error. However, the class will report 0 controllers as being connected. To get XInput support, make sure you run windows XP or vista, and install any directX runtime from february 2007 or newer.

Controller mapping


The mapping of physical buttons/axes to button/axis IDs is fixed and known.

Button 0: A
Button 1: B
Button 2: X
Button 3: Y
Button 4: LB
Button 5: RB
Button 6: Back
Button 7: Start
Button 8: Left thumb
Button 9: Right thumb

Axis X: Left thumb X
Axis Y: Left thumb Y
Axis R: Right thumb X
Axis Z: Right thumb Y
Axis U: Left trigger
Axis V: Right trigger

D-pad: Mapped to d-pad

<<< Back to LightX documentation root