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
Methods
Add(Key)
public void Add(Key key)
Parameters
key
Key
IsPressed(Key)
public bool IsPressed(Key key)
Parameters
key
Key
Returns
IsPressed(IEnumerable<Key>)
public bool IsPressed(IEnumerable<Key> keys)
Parameters
keys
IEnumerable<Key>
Returns
IsPressed(string)
public bool IsPressed(string keyName)
Parameters
keyName
string
Returns
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.