InputAPI reference
Class KeyUsages
Namespace: MicroEngine.Input
Assembly: MicroEngine.Input.dll
Guide: Input
The physical position of each Key as a USB HID keyboard usage (page 7), the code SDL calls a scancode: backends that report HID usages map them with one table.
public static class KeyUsagesInheritance
Properties
All
Every key the engine names, in enum order (no None).
public static IReadOnlyList<Key> All { get; }Property Value
Methods
FromHidUsage(int)
The key at HID usage usage, or None for a usage the engine does not name.
public static Key FromHidUsage(int usage)Parameters
usage int
Returns
Usage(Key)
The HID usage of key, or 0 for None.
public static int Usage(Key key)Parameters
key Key