reckfellENGINE

InputEventJoypadMotion

Represents axis motions (such as joystick or analog triggers) from a gamepad.

On this page
class InputEventJoypadMotionReckfellSharpInherits InputEvent

Represents axis motions (such as joystick or analog triggers) from a gamepad.

Stores information about joystick motions. One InputEventJoypadMotion represents one axis at a time. For gamepad buttons, see InputEventJoypadButton.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

InputEventJoypadMotionConstructor
# InputEventJoypadMotion
C#
public InputEventJoypadMotion();

Properties2

AxisProperty
# Axis
C#
public JoyAxis Axis { get; set; }

Axis identifier.

AxisValueProperty
# AxisValue
C#
public float AxisValue { get; set; }

Current position of the joystick on the given axis. The value ranges from -1.0 to 1.0. A value of 0 means the axis is in its resting position.

Methods4

GetAxisJoyAxis
# GetAxis
C#
public JoyAxis GetAxis();
Returns JoyAxis
GetAxisValuefloat
# GetAxisValue
C#
public float GetAxisValue();
Returns float
SetAxisvoid
# SetAxis
C#
public void SetAxis(JoyAxis axis);
Parameters
NameTypeDefault
axisJoyAxis—
SetAxisValuevoid
# SetAxisValue
C#
public void SetAxisValue(float axisValue);
Parameters
NameTypeDefault
axisValuefloat—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.