Table of Contents

Class KeyDown

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

Represents an operator that generates a sequence of events produced whenever a key is pressed while the shader window has focus.

public class KeyDown : Source<EventPattern<INativeWindow, KeyboardKeyEventArgs>>
Inheritance
KeyDown
Inherited Members

Properties

Key

Gets or sets a value specifying an optional key to use as a filter.

[TypeConverter(typeof(NullableEnumConverter))]
public Key? Key { get; set; }

Property Value

Key?

Modifiers

Gets or sets a value specifying optional key modifiers to use as a filter.

[TypeConverter(typeof(NullableEnumConverter))]
public KeyModifiers? Modifiers { get; set; }

Property Value

KeyModifiers?

Methods

Generate()

Generates an observable sequence that produces a value whenever a key is pressed while the shader window has focus.

public override IObservable<EventPattern<INativeWindow, KeyboardKeyEventArgs>> Generate()

Returns

IObservable<EventPattern<INativeWindow, KeyboardKeyEventArgs>>

A sequence of events containing KeyboardKeyEventArgs event data produced whenever a key is pressed while the shader window has focus.