Input Functions

From ENIGMA
Jump to navigation Jump to search

This article is an overview of input related functions.

These functions exist for checking the state of input on desktop computers with a mouse or keyboard.


These functions are for controlling game pad devices such as Xbox 360 and PlayStation 3 controllers, currently only Xbox 360 controllers work on Windows and you must enable the XInput extension. Windows supports up to 4 gamepads connected simultaneously. Gamepad related constants are available here.

These functions are for use with joysticks, like those that are often used to play flight simulator games. In the diagram mapping the axis of a joystick below, Roll corresponds to the R joystick axis, Pitch corresponds to the U axis, and Yaw corresponds to the V axis. No more than 16 joysticks at a given time can be handled.

Matrix of a Nintendo Wii controller when accessed with joystick functions.