ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::KeyboardHardwareInputSet Class Reference

A keyboard input device. More...

#include <hardware-input.h>

Inheritance diagram for Common::KeyboardHardwareInputSet:
Collaboration diagram for Common::KeyboardHardwareInputSet:

List of all members.

Public Member Functions

 KeyboardHardwareInputSet (const KeyTableEntry *keys, const ModifierTableEntry *modifiers)
HardwareInput findHardwareInput (const String &id) const override
 Retrieve a hardware input description from an unique identifier.
HardwareInput findHardwareInput (const Event &event) const override
 Retrieve a hardware input description from one of the events produced when the input is triggered.

Static Public Member Functions

static KeyState normalizeKeyState (const KeyState &keystate)
 Transform a keystate into a canonical form that can be used to unambiguously identify the keypress.

Private Attributes

const KeyTableEntry_keys
const ModifierTableEntry_modifiers

Detailed Description

A keyboard input device.

Describes the keys and key + modifiers combinations as HardwareInputs

Definition at line 229 of file hardware-input.h.


Constructor & Destructor Documentation

Common::KeyboardHardwareInputSet::KeyboardHardwareInputSet ( const KeyTableEntry keys,
const ModifierTableEntry modifiers 
)

Definition at line 287 of file hardware-input.cpp.


Member Function Documentation

HardwareInput Common::KeyboardHardwareInputSet::findHardwareInput ( const String id  )  const [override, virtual]

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.

Definition at line 294 of file hardware-input.cpp.

HardwareInput Common::KeyboardHardwareInputSet::findHardwareInput ( const Event event  )  const [override, virtual]

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.

Definition at line 341 of file hardware-input.cpp.

KeyState Common::KeyboardHardwareInputSet::normalizeKeyState ( const KeyState keystate  )  [static]

Transform a keystate into a canonical form that can be used to unambiguously identify the keypress.

Definition at line 379 of file hardware-input.cpp.


Member Data Documentation

Definition at line 241 of file hardware-input.h.


The documentation for this class was generated from the following files:


Generated on Sat Sep 26 2020 05:03:03 for ResidualVM by doxygen 1.7.1
curved edge   curved edge