Union Bytes EngineModulesJoystickJoystickPointOfView

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystick
ExamineJoysticksJoystickAxisJoystickAxisDeadzoneJoystickButtonEventJoystickNameJoystickPointOfView
LightMaterialMathMeshNetworkNodeObjectParticlePhysicShaderSoundsSpriteTexture

JoystickPointOfView

Description

Gets the current direction of the point-of-view of the specified joystick.

Syntax

Direction.f = UBE_JoystickPointOfView(Joystick.i [, Mode.i])

Parameters

Joystick The index of the connected joysticks.
Mode One of the following constants:
#UBE_DEGREE Unit of the angle is degree.
#UBE_RADIAN Unit of the angle is radians.
The default mode is #UBE_DEGREE.

Return value

0.0 for no direction or the current direction in degree:
45.0, 90.0, 135.0, 180.0, 225.0, 270.0, 315.0 or 360.0.

See also

Union Bytes | Login