ScummVM API documentation
Common::HardwareInputSet Class Referenceabstract

#include <hardware-input.h>

Inheritance diagram for Common::HardwareInputSet:
Common::CompositeHardwareInputSet Common::CustomHardwareInputSet Common::JoystickHardwareInputSet Common::KeyboardHardwareInputSet Common::MouseHardwareInputSet

Public Member Functions

virtual HardwareInput findHardwareInput (const String &id) const =0
 
virtual HardwareInput findHardwareInput (const Event &event) const =0
 

Detailed Description

Interface for querying information about a hardware input device

Member Function Documentation

◆ findHardwareInput() [1/2]

virtual HardwareInput Common::HardwareInputSet::findHardwareInput ( const String id) const
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.

◆ findHardwareInput() [2/2]

virtual HardwareInput Common::HardwareInputSet::findHardwareInput ( const Event event) const
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.


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