Table of Contents

Class KeyboardState

Namespace
ScottPlot.Interactivity
Assembly
ScottPlot.dll

Tracks which keyboard keys are currently pressed.

public class KeyboardState
Inheritance
KeyboardState
Inherited Members
Extension Methods

Properties

GetPressedKeyNames

public string[] GetPressedKeyNames { get; }

Property Value

string[]

PressedKeyCount

public int PressedKeyCount { get; }

Property Value

int

Methods

Add(Key)

public void Add(Key key)

Parameters

key Key

IsPressed(Key)

public bool IsPressed(Key key)

Parameters

key Key

Returns

bool

IsPressed(IEnumerable<Key>)

public bool IsPressed(IEnumerable<Key> keys)

Parameters

keys IEnumerable<Key>

Returns

bool

IsPressed(string)

public bool IsPressed(string keyName)

Parameters

keyName string

Returns

bool

Remove(Key)

public void Remove(Key key)

Parameters

key Key

Reset()

public void Reset()

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.