Skip to main content

Struct AnalogJoystickPosition

Represents a position that an analog joystick can having, including both the Horizontal and Vertical components.

Assembly: Meadow.Contracts.dll
View Source
public struct AnalogJoystickPosition

Properties

Horizontal

Current horizontal position of joystick

View Source
public float? Horizontal { readonly get; set; }

Vertical

Current vertical position of joystick

View Source
public float? Vertical { readonly get; set; }

Methods

From(AnalogJoystickPosition)

Create a new JoystickPosition instance

View Source
public static AnalogJoystickPosition From(AnalogJoystickPosition position)
Returns

Meadow.Peripherals.Sensors.Hid.AnalogJoystickPosition

Parameters
TypeNameDescription
Meadow.Peripherals.Sensors.Hid.AnalogJoystickPositionpositionReference position to copy values from