Union Bytes EngineModulesJoystickJoystickAxis

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystick
ExamineJoysticksJoystickAxisJoystickAxisDeadzoneJoystickButtonEventJoystickNameJoystickPointOfView
LightMaterialMathMeshNetworkNodeObjectParticlePhysicShaderSoundsSpriteTexture

JoystickAxis

Description

Gets the current position value of the axis of the joystick.

Syntax

Value.f = UBE_JoystickAxis(Joystick.i, Axis.i [, Precision.f])

Parameters

Joystick The index of the connected joysticks.
Axis The index of the axis, or one of the following constants:
#UBE_JOYSTICK_AXIS_X X-axis (left and right)
#UBE_JOYSTICK_AXIS_Y Y-axis (down and up)
#UBE_JOYSTICK_AXIS_Z Z-axis (back and forth)
#UBE_JOYSTICK_AXIS_R R-axis (pitch)
#UBE_JOYSTICK_AXIS_U U-axis (yaw)
#UBE_JOYSTICK_AXIS_V V-axis (roll)

Return value

The current position value (as a float number) between -1.0 and 1.0 of the given axis.

See also

Union Bytes | Login