#include <hardware-input.h>
Public Member Functions | |
KeyboardHardwareInputSet (const KeyTableEntry *keys, const ModifierTableEntry *modifiers) | |
HardwareInput | findHardwareInput (const String &id) const override |
HardwareInput | findHardwareInput (const Event &event) const override |
Static Public Member Functions | |
static KeyState | normalizeKeyState (const KeyState &keystate) |
A keyboard input device
Describes the keys and key + modifiers combinations as HardwareInputs
|
overridevirtual |
Retrieve a hardware input description from an unique identifier
In case no input was found with the specified id, an empty HardwareInput structure is return with the type set to kHardwareInputTypeInvalid.
Implements Common::HardwareInputSet.
|
overridevirtual |
Retrieve a hardware input description from one of the events produced when the input is triggered.
In case the specified event is not produced by this device, an empty HardwareInput structure is return with the type set to kHardwareInputTypeInvalid.
Implements Common::HardwareInputSet.
|
static |
Transform a keystate into a canonical form that can be used to unambiguously identify the keypress