Skip to main content

Interface IAnalogJoystick

Interface describing 2-axis analog joysticks

Assembly: Meadow.Contracts.dll
View Source
Declaration
public interface IAnalogJoystick

Properties

IsHorizontalInverted

Is the horizontal / x-axis inverted

View Source
Declaration
bool IsHorizontalInverted { get; set; }

IsVerticalInverted

Is the vertical / y-axis inverted

View Source
Declaration
bool IsVerticalInverted { get; set; }

Position

Current position of analog joystick

View Source
Declaration
AnalogJoystickPosition? Position { get; }

Events

Updated

Raised when a new reading has been made.

View Source
Declaration
event EventHandler<IChangeResult<AnalogJoystickPosition>> Updated
Event Type

System.EventHandler<Meadow.IChangeResult<Meadow.Peripherals.Sensors.Hid.AnalogJoystickPosition>>