#include <GizmoStandard.hpp>
Public Member Functions | |
virtual std::string | getType () |
Get the type of the Gizmo. | |
virtual bool | processEvent (GizmoEvent *pEvent) |
Process an event. | |
GizmoStandard () | |
Serialize Constructor. | |
GizmoStandard (const H::DeviceInfo &deviceInfo, int DeviceID, int DeviceClassID) | |
Default Constructor. | |
virtual | ~GizmoStandard () |
Destructor. | |
Friends | |
class | boost::serialization::access |
This class contains all of the helper functions for making use of standard devices
Definition at line 62 of file GizmoStandard.hpp.
GizmoStandard::GizmoStandard | ( | ) |
Serialize Constructor.
GizmoStandard Serialize Constructor.
Definition at line 63 of file GizmoStandard.cpp.
GizmoStandard::GizmoStandard | ( | const H::DeviceInfo & | deviceInfo, | |
int | DeviceID, | |||
int | DeviceClassID | |||
) |
Default Constructor.
GizmoStandard Default Constructor.
Definition at line 57 of file GizmoStandard.cpp.
GizmoStandard::~GizmoStandard | ( | ) | [virtual] |
std::string GizmoStandard::getType | ( | ) | [virtual] |
Get the type of the Gizmo.
Get the type of this Gizmo.
Reimplemented from Gizmod::Gizmo.
Definition at line 80 of file GizmoStandard.cpp.
References GIZMO_STANDARD_TYPE.
bool GizmoStandard::processEvent | ( | GizmoEvent * | pEvent | ) | [virtual] |
Process an event.
pEvent | The event to process |
Reimplemented from Gizmod::Gizmo.
Definition at line 89 of file GizmoStandard.cpp.
References Gizmod::GizmoLinuxInputEvent::Code, Gizmod::GizmoLinuxInputDevice::processEvent(), Gizmod::Gizmo::setKeyState(), Gizmod::GizmoLinuxInputEvent::Type, and Gizmod::GizmoLinuxInputEvent::Value.