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 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.