Table of Contents

Class KeyboardDevice

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

The KeyboardDevice class represents the mouse device to the members of a context.

public abstract class KeyboardDevice : InputDevice, IBaseObject, IDisposableObject, IDisposable
Inheritance
KeyboardDevice
Implements

Constructors

KeyboardDevice(InputManager)

Properties

Modifiers

Returns the set of modifier keys currently pressed as determined by querying our keyboard state cache

RawModifiers

Returns the set of raw modifier keys currently pressed as determined by querying our keyboard state cache

Methods

GetKeyStates(Key)

Returns the state of the specified key.

GetKeyStatesFromSystem(Key)

Gets the current state of the specified key from the device from the underlying system

IsKeyDown(Key)

Returns whether or not the specified key is down.

IsKeyToggled(Key)

Returns whether or not the specified key is toggled.

IsKeyUp(Key)

Returns whether or not the specified key is up.