Union Bytes EngineModulesJoystickJoystickButtonEvent

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystick
ExamineJoysticksJoystickAxisJoystickAxisDeadzoneJoystickButtonEventJoystickNameJoystickPointOfView
LightMaterialMathMeshNetworkNodeObjectParticlePhysicShaderSoundsSpriteTexture

JoystickButtonEvent

Description

Gets the current event of the button of the joystick.

Syntax

Event.i = UBE_JoystickButtonEvent( Joystick.i, Button.i )

Parameters

Joystick The index of the connected joysticks.
Button The index of the button.

Return value

A combination of the following constants:
#UBE_JOYSTICK_UP The state of the button is "up".
#UBE_JOYSTICK_DOWN The state of the button is "down".
#UBE_JOYSTICK_RELEASED The state of the button is changed to "up".
#UBE_JOYSTICK_PUSHED The state of the button is changed to "down".
#UBE_JOYSTICK_DOUBLECLICK The button wars clicked two times.

See also

Union Bytes | Login