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
LeftJoystick
The value of the gamepad's left joystick.
Vector2 LeftJoystick { get; }
Property Value
LeftTrigger
Gets the value of the gamepad's left trigger, between 0 (not hold) and 1 (fully held).
float LeftTrigger { get; }
Property Value
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
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
RightJoystick
The value of the gamepad's right joystick.
Vector2 RightJoystick { get; }
Property Value
RightTrigger
Gets the value of the gamepad's right trigger, between 0 (not held) and 1 (fully held).
float RightTrigger { get; }
Property Value
VibrationStrength
Controls the strength of the gamepads's haptic feedback, between 0 (no vibration) and 1 (max vibration).
float VibrationStrength { get; set; }
Property Value
Events
ButtonPressed
Invoked when a button is pressed.
event GamepadButtonEvent ButtonPressed
Event Type
ButtonReleased
Invoked when a button is released.
event GamepadButtonEvent ButtonReleased