Joystick allows an application to control one or more joysticks.
Constructor. joystick may be one of JOYSTICK1, JOYSTICK2, indicating the joystick
controller of interest.
Destroys the Joystick object.
Returns the state of the joystick buttons. Every button is mapped to a single
bit in the returned integer, with the first button being mapped to the least
significant bit, and so on.
A bitlist of JOY_BUTTONn identifiers, where n is 1, 2, 3 or 4
is available for historical reasons.
Returns the manufacturer id.
Returns the movement threshold, the number of steps outside which the joystick is deemed to have
moved.
Returns the number of axes for this joystick.
Returns the number of buttons for this joystick.
Returns the number of joysticks currently attached to the computer.
Returns the maximum polling frequency.
Returns the minimum polling frequency.
Returns the product id for the joystick.
Returns the product name for the joystick.
Returns the x, y position of the joystick.
Returns the point-of-view position, expressed in continuous, one-hundredth of a degree units,
but limited to return 0, 9000, 18000 or 27000.
Returns -1 on error.
Returns the point-of-view position, expressed in continuous, one-hundredth of a degree units.
Returns -1 on error.
Returns the maximum rudder position.
Returns the minimum rudder position.
Returns the rudder position.
Returns the maximum U position.
Returns the minimum U position.
Gets the position of the fifth axis of the joystick, if it exists.
Returns the maximum V position.
Returns the minimum V position.
Gets the position of the sixth axis of the joystick, if it exists.
Returns the maximum x position.
Returns the minimum x position.
Returns the maximum y position.
Returns the minimum y position.
Returns the maximum z position.
Returns the minimum z position.
Returns the z position of the joystick.
Returns true if the joystick has a point of view control.
Returns true if the joystick point-of-view supports discrete values (centered, forward, backward, left, and right).
Returns true if the joystick point-of-view supports continuous degree bearings.
Returns true if there is a rudder attached to the computer.
Returns true if the joystick has a U axis.
Returns true if the joystick has a V axis.
Returns true if the joystick has a Z axis.
Returns true if the joystick is functioning.
Releases the capture set by SetCapture.
true if the capture release succeeded.
Joystick#set_capture, JoystickEvent
Sets the capture to direct joystick events to win.
true if the capture succeeded.
Joystick#release_capture, JoystickEvent
Sets the movement threshold, the number of steps outside which the joystick is deemed to have
moved.
[This page automatically generated from the Textile source at 2023-06-09 00:45:33 +0000]