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