Vixen
02b45cc4
csharp
public enum InputKey

A key by its physical position, independent of the keyboard layout.

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

Remarks

The same values as Vixen.Platform.Key, deliberately and by construction. Both are the USB HID usage table for keyboards, so the conversion between them is a cast and the bridge that feeds this assembly from a platform's event stream does not carry a translation table. InputKeyMatchesPlatformKeyTests asserts member by member that the two agree; a value that drifted would be a failing test rather than a control that binds to the wrong key on one backend.

Why the enum is here at all rather than referenced. Vixen.Input is a Core/ assembly and Vixen.Platform is not, and CheckArchitecture refuses the reference upward — for the reason that makes the layering worth having: Vixen.Ui consumes this assembly and must stay usable without a platform backend. The engine's answer to that everywhere else is the same as here, and Vixen.Ui.PointerButton is the existing instance of it.

The names below are the US-QWERTY legends because something has to name a position. On a French AZERTY layout Q is the key labelled A. Typed characters are not keys and never arrive as one — see ITextInput.

Fields and properties (119)

  • Unknown

    No key, or a key this platform does not report.

  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H
  • I
  • J
  • K
  • L
  • M
  • N
  • O
  • P
  • Q
  • R
  • S
  • T
  • U
  • V
  • W
  • X
  • Y
  • Z
  • Number1

    The 1 on the number row, not the numeric keypad.

  • Number2
  • Number3
  • Number4
  • Number5
  • Number6
  • Number7
  • Number8
  • Number9
  • Number0
  • Enter
  • Escape
  • Backspace
  • Tab
  • Space
  • Minus
  • Equals
  • LeftBracket
  • RightBracket
  • Backslash
  • Semicolon
  • Apostrophe
  • Grave
  • Comma
  • Period
  • Slash
  • CapsLock
  • F1
  • F2
  • F3
  • F4
  • F5
  • F6
  • F7
  • F8
  • F9
  • F10
  • F11
  • F12
  • PrintScreen
  • ScrollLock
  • Pause
  • Insert
  • Home
  • PageUp
  • Delete
  • End
  • PageDown
  • Right
  • Left
  • Down
  • Up
  • NumLock
  • KeypadDivide
  • KeypadMultiply
  • KeypadMinus
  • KeypadPlus
  • KeypadEnter
  • Keypad1
  • Keypad2
  • Keypad3
  • Keypad4
  • Keypad5
  • Keypad6
  • Keypad7
  • Keypad8
  • Keypad9
  • Keypad0
  • KeypadPeriod
  • NonUsBackslash

    The extra key next to left shift on ISO keyboards, absent on ANSI ones.

  • Application

    The menu key, and the same physical key Android reports for its menu button.

  • F13
  • F14
  • F15
  • F16
  • F17
  • F18
  • F19
  • F20
  • F21
  • F22
  • F23
  • F24
  • LeftControl
  • LeftShift
  • LeftAlt

    Left Alt, and Option on a Mac.

  • LeftMeta

    Left Windows, Command on a Mac, Super on Linux.

  • RightControl
  • RightShift
  • RightAlt

    Right Alt, which is AltGr on layouts that have one.

  • RightMeta

    Right Windows, Command on a Mac, Super on Linux.

  • Back

    Android's hardware back button, and the browser's back gesture.

Used by (106, showing 40)

  • ShellHelloUi
  • AccessKeyTestsVixen.Ui.Tests
  • AdvancedFixtureVixen.Ui.Controls.Advanced.Tests
  • ButtonBaseVixen.Ui.Controls
  • ButtonTestsVixen.Ui.Controls.Tests
  • CodeEditorVixen.Ui.Controls.Advanced
  • CodeEditorTestsVixen.Ui.Controls.Advanced.Tests
  • ColorInputVixen.Ui.Controls.Advanced
  • ColorPickerTestsVixen.Ui.Controls.Advanced.Tests
  • ControlFixtureVixen.Ui.Controls.Tests
  • CurveEditorVixen.Ui.Controls.Advanced
  • CurveEditorTestsVixen.Ui.Controls.Advanced.Tests
  • DataGridVixen.Ui.Controls.Advanced
  • DataGridTestsVixen.Ui.Controls.Advanced.Tests
  • GeneratedAccessorTestsVixen.Input.Tests
  • GradientEditorVixen.Ui.Controls.Advanced
  • GradientEditorTestsVixen.Ui.Controls.Advanced.Tests
  • InputActionTestsVixen.Input.Tests
  • InputControlVixen.Input
  • InputControlPathVixen.Input
  • InputControlPathTestsVixen.Input.Tests
  • InputDeviceSetVixen.Input
  • InputKeyTestsVixen.Input.Tests
  • InputRebindingTestsVixen.Input.Tests
  • InteractionTestsVixen.Ui.Testing.Tests
  • KeyEventVixen.Ui
  • KeyboardDeviceVixen.Input
  • KeyboardShortcutVixen.Ui.Controls
  • KeyboardTestsVixen.Ui.Tests
  • MarkupTestsVixen.Ui.Controls.Tests
  • MenuVixen.Ui.Controls
  • MenuItemVixen.Ui.Controls
  • NavigationInteractionTestsVixen.Ui.Controls.Tests
  • NodeCanvasVixen.Ui.Controls.Advanced
  • NodeCanvasTestsVixen.Ui.Controls.Advanced.Tests
  • NumericInputVixen.Ui.Controls
  • OverlayVixen.Ui.Controls
  • OverlayInteractionTestsVixen.Ui.Controls.Tests
  • OverlayLifetimeTestsVixen.Ui.Controls.Tests
  • PlatformInputVixen.Platform.Ui