joy_raw
joy_rot
joy2_raw
joy2_rot
Raw axes positions of the first and second joystick
or a 3D
navigation device. Up to 6 axes per joystick can be used. The joy_raw vector
contains the
values
of the first 3 axes (normally x, y, and throttle) and joy_rot the
values of the axes 4..6 (normally handle twisting, and further rotations).
The startup
position is zero.
Range
-255 ... +255 for joysticks, up to -500 .. +500 for navigation devices.
Type:
VECTOR*, read-only
Remarks
If a 3D navigation device
by 3Dconnexion is
detected, the engine gives the startup message "3D navigation device
found" and
binds it in as a second joystick device. If no joystick is found, it
is also used for the first joystick device.
 |
joy_raw.x,y |
joy_raw.z |
joy_rot.y,z |
Development tools and related technology provided under license from
3Dconnexion. © 3Dconnexion. All rights reserved.
Example
// Through simple arithmetics the range can be changed:
throttle = 50 - (50/255)*joy_raw.z; // gives throttle a 0..100 range
See also:
joy_force, joy_1 .. joy_10, joy2_1 .. joy2_10, num_joysticks,
joy_buttons
► latest
version online