Method Generate
Generate()
Generates an observable sequence where each element represents the current state of the specified mouse device.
public override IObservable<MouseState> Generate()
Returns
- IObservable<MouseState>
A sequence of MouseState values representing the current state of the mouse device.
Generate<TSource>(IObservable<TSource>)
Generates an observable sequence where each element represents the
current state of the specified mouse device, at the time the
source sequence emits a notification.
public IObservable<MouseState> Generate<TSource>(IObservable<TSource> source)
Parameters
sourceIObservable<TSource>The sequence containing the notifications indicating when to check for the current state of the mouse device.
Returns
- IObservable<MouseState>
A sequence of MouseState values representing the current state of the mouse device, at the time the
sourcesequence emits a notification.
Type Parameters
TSourceThe type of the elements in the
sourcesequence.