#include <hardware-input.h>
Public Member Functions | |
virtual HardwareInput | findHardwareInput (const String &id) const =0 |
virtual HardwareInput | findHardwareInput (const Event &event) const =0 |
Interface for querying information about a hardware input device
|
pure 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.
Implemented in Common::CompositeHardwareInputSet, Common::CustomHardwareInputSet, Common::JoystickHardwareInputSet, Common::MouseHardwareInputSet, and Common::KeyboardHardwareInputSet.
|
pure 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.
Implemented in Common::CompositeHardwareInputSet, Common::CustomHardwareInputSet, Common::JoystickHardwareInputSet, Common::MouseHardwareInputSet, and Common::KeyboardHardwareInputSet.