Vixen
02b45cc4
csharp
public sealed class KeyboardDevice

The keyboard, as a set of physical key positions that are down or not.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

No layout, no characters, no modifier flags: a modifier is a key like any other and <Keyboard>/leftShift is how a binding names it. Typed text is ITextInput's job and never arrives here.

Fields and properties (4)

  • public InputDeviceKind Kind

    Which family it belongs to.

  • public int DeviceId

    The id its events arrive under, or 0 for the singleton devices.

  • public string Name

    Its name, for a settings screen.

  • public bool IsConnected

    Whether it is still there.

Methods (2)

  • public bool IsDown(InputKey key)

    Whether a key is held.

  • public float ReadValue(InputControl control)

    Reads one of its controls.

Used by (2)

  • InputDeviceSetVixen.Input
  • PlatformInputTestsVixen.App.Tests