Table of Contents

Interface IGamepadProvider

Namespace
SimulationFramework.Input
Assembly
SimulationFramework.dll

Provides gamepad input to the simulation.

public interface IGamepadProvider : ISimulationComponent, IDisposable
Inherited Members

Properties

HeldButtons

A collection of all buttons which are pressed this frame. A button is only considered pressed on the first frame that it is held.

IEnumerable<GamepadButton> HeldButtons { get; }

Property Value

IEnumerable<GamepadButton>

LeftJoystick

The value of the gamepad's left joystick.

Vector2 LeftJoystick { get; }

Property Value

Vector2

LeftTrigger

Gets the value of the gamepad's left trigger, between 0 (not hold) and 1 (fully held).

float LeftTrigger { get; }

Property Value

float

PressedButtons

A collection of all buttons which are pressed this frame. A button is only considered pressed on the first frame that it is held.

IEnumerable<GamepadButton> PressedButtons { get; }

Property Value

IEnumerable<GamepadButton>

ReleasedButtons

A collection of all buttons which are pressed this frame. A button is only considered released on the first frame that it is not held.

IEnumerable<GamepadButton> ReleasedButtons { get; }

Property Value

IEnumerable<GamepadButton>

RightJoystick

The value of the gamepad's right joystick.

Vector2 RightJoystick { get; }

Property Value

Vector2

RightTrigger

Gets the value of the gamepad's right trigger, between 0 (not held) and 1 (fully held).

float RightTrigger { get; }

Property Value

float

VibrationStrength

Controls the strength of the gamepads's haptic feedback, between 0 (no vibration) and 1 (max vibration).

float VibrationStrength { get; set; }

Property Value

float

Events

ButtonPressed

Invoked when a button is pressed.

event GamepadButtonEvent ButtonPressed

Event Type

GamepadButtonEvent

ButtonReleased

Invoked when a button is released.

event GamepadButtonEvent ButtonReleased

Event Type

GamepadButtonEvent