Skip to content

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.

C#
public static class KeyUsages

Inheritance

object ← KeyUsages

Properties

All

Every key the engine names, in enum order (no None).

C#
public static IReadOnlyList<Key> All { get; }

Property Value

IReadOnlyList<Key>

Methods

FromHidUsage(int)

The key at HID usage usage, or None for a usage the engine does not name.

C#
public static Key FromHidUsage(int usage)

Parameters

usage int

Returns

Key

Usage(Key)

The HID usage of key, or 0 for None.

C#
public static int Usage(Key key)

Parameters

key Key

Returns

int