Confirmed users
656
edits
| Line 98: | Line 98: | ||
=== Joystick Axis Events === | === Joystick Axis Events === | ||
Similar to the button events, the axis events provide a way for developers to know when a user has moved one or more of a joystick's axises (i.e., | Similar to the button events, the axis events provide a way for developers to know when a user has moved one or more of a joystick's axises (i.e., left-right or up-down). Just as a joystick can have multiple buttons, so to can there be many axes. Each physical stick on a joystick provides two axes for changes in X and Y positioning. The '''MozJoyAxisMove''' event indicates that a joystick's axis has changed, and its new value. The axis is numbered, and its value is given, which is a float between -1.0 (the lowest possible value) and 1.0 (the highest possible value): | ||
<pre> | <pre> | ||