Table of Contents

Method Generate

Namespace
Bonsai.Shaders.Input
Assembly
Bonsai.Shaders.dll

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.