#include <Gizmo.hpp>
Inheritance diagram for Gizmod::Gizmo:


Public Member Functions | |
| virtual GizmoClass | getClass () |
| Get the class of the Gizmo. | |
| int | getDeviceID () |
| Get the Device ID. | |
| int | getDeviceClassID () |
| Get the Device Class ID. | |
| virtual int | getKeyState (GizmoKey Key) |
| Get a key state. | |
| virtual std::string | getType () |
| Get the type of the Gizmo. | |
| virtual bool | processEvent (GizmoEvent *pEvent) |
| Process an event. | |
| void | setKeyState (GizmoKey Key, int State) |
| Set a keystate of the Gizmo. | |
| Gizmo () | |
| Serialize Constructor. | |
| Gizmo (GizmoClass Class, const H::DeviceInfo &deviceInfo, int DeviceID, int DeviceClassID) | |
| Default Constructor. | |
| virtual | ~Gizmo () |
| Destructor. | |
Protected Attributes | |
| GizmoClass | mClass |
| Class of the Gizmo. | |
| int | mDeviceID |
| Unique ID of the device. | |
| int | mDeviceClassID |
| ID of the device in its class. | |
| int | mKeyState [GIZMO_KEY_MAX] |
| Gizmos's key states. | |
Friends | |
| class | boost::serialization::access |
This class is the base of all Gizmos attached to the system. Each Gizmo must inherit this class
| GizmoClass Gizmo::getClass | ( | ) | [virtual] |
| int Gizmo::getDeviceClassID | ( | ) |
Get the Device Class ID.
Effectively this can be used to find out which Powermate device an event belongs to, and so forth.
| int Gizmo::getDeviceID | ( | ) |
| int Gizmo::getKeyState | ( | GizmoKey | Key | ) | [virtual] |
Get a key state.
| Key | The key to inquire upon |
| std::string Gizmo::getType | ( | ) | [virtual] |
Get the type of the Gizmo.
Reimplemented in Gizmod::GizmoATIX10, Gizmod::GizmoLIRC, Gizmod::GizmoPowermate, and Gizmod::GizmoStandard.
| bool Gizmo::processEvent | ( | GizmoEvent * | pEvent | ) | [virtual] |
Process an event.
| pEvent | The event to process |
Reimplemented in Gizmod::GizmoATIX10, Gizmod::GizmoLIRC, Gizmod::GizmoPowermate, and Gizmod::GizmoStandard.
| void Gizmo::setKeyState | ( | GizmoKey | Key, | |
| int | State | |||
| ) |
Set a keystate of the Gizmo.
| Key | The key to change states | |
| State | The new state (0 == off, 1 == on, 2 == repeating) |
1.4.7