Table of Contents

Class KeyState

Namespace
Bonsai.Windows.Input
Assembly
Bonsai.Windows.Input.dll

Represents an operator that determines whether a key is up or down at the time of notification.

[WorkflowElementCategory(ElementCategory.Transform)]
public class KeyState : Combinator<bool>
Inheritance
KeyState
Inherited Members

Properties

Filter

Gets or sets the target key to be observed.

public Keys Filter { get; set; }

Property Value

Keys

Methods

Process<TSource>(IObservable<TSource>)

Generates a sequence of values indicating whether the target key is up or down each time the source sequence emits a notification.

public override IObservable<bool> Process<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence containing the notifications indicating when to check whether the key is up or down.

Returns

IObservable<bool>

A sequence of bool values indicating whether the key is up or down at the time the source sequence emits a notification.

Type Parameters

TSource

The type of the elements in the source sequence.