Class GamePad
Represents an operator that generates a sequence with the current state of the specified gamepad device.
public class GamePad : Source<GamePadState>
- Inheritance
-
GamePad
- Inherited Members
Properties
Index
Gets or sets the index of the gamepad device.
public int Index { get; set; }
Property Value
Methods
Generate()
Generates an observable sequence where each element represents the current state of the specified gamepad device.
public override IObservable<GamePadState> Generate()
Returns
- IObservable<GamePadState>
A sequence of GamePadState values representing the current state of the gamepad device.
Generate<TSource>(IObservable<TSource>)
Generates an observable sequence where each element represents the
current state of the specified gamepad device, at the time the
source
sequence emits a notification.
public IObservable<GamePadState> Generate<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence containing the notifications indicating when to check for the current state of the gamepad device.
Returns
- IObservable<GamePadState>
A sequence of GamePadState values representing the current state of the gamepad device, at the time the
source
sequence emits a notification.
Type Parameters
TSource
The type of the elements in the
source
sequence.