GamePadDeviceBase Class
Namespace: Stride.Input
Assembly: Stride.Input.dll
System.Object →
GamePadDeviceBase
public abstract class GamePadDeviceBase : IGamePadDevice, IInputDevice
|
Improve this Doc
View Source
Constructors
protected GamePadDeviceBase()
|
Improve this Doc
View Source
Properties
public bool CanChangeIndex { get; protected set; }
Property Value
Type |
Description |
System.Boolean |
|
public IReadOnlySet<GamePadButton> DownButtons { get; }
Property Value
public abstract Guid Id { get; }
Property Value
Type |
Description |
System.Guid |
|
public int Index { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
public abstract string Name { get; }
Property Value
Type |
Description |
System.String |
|
public IReadOnlySet<GamePadButton> PressedButtons { get; }
Property Value
public int Priority { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
public abstract Guid ProductId { get; }
Property Value
Type |
Description |
System.Guid |
|
public IReadOnlySet<GamePadButton> ReleasedButtons { get; }
Property Value
public abstract IInputSource Source { get; }
Property Value
public abstract GamePadState State { get; }
Property Value
|
Improve this Doc
View Source
Methods
Clears previous Pressed/Released states
protected void ClearButtonStates()
protected void SetIndexInternal(int newIndex, bool isDeviceSideChange = true)
Parameters
Type |
Name |
Description |
System.Int32 |
newIndex |
|
System.Boolean |
isDeviceSideChange |
|
public abstract void SetVibration(float smallLeft, float smallRight, float largeLeft, float largeRight)
Parameters
Type |
Name |
Description |
System.Single |
smallLeft |
|
System.Single |
smallRight |
|
System.Single |
largeLeft |
|
System.Single |
largeRight |
|
public abstract void Update(List<InputEvent> inputEvents)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<InputEvent> |
inputEvents |
|
Updates Pressed/Released/Down collections
protected void UpdateButtonState(GamePadButtonEvent evt)
Parameters
|
Improve this Doc
View Source
Events
public event EventHandler<GamePadIndexChangedEventArgs> IndexChanged
Event Type
Extension Methods