#include <GizmoLIRC.hpp>


Public Member Functions | |
| virtual std::string | getType () |
| Get the type of the Gizmo. | |
| virtual bool | processEvent (GizmoEvent *pEvent) |
| Process an event. | |
| void | setDisableFirstRepeats (int Repeats) |
| Set the number of repeats to disable. | |
| void | setMinimumTimeBetweenEvents (float Seconds) |
| Set the minimum time between events. | |
| GizmoLIRC () | |
| Serialize Constructor. | |
| GizmoLIRC (const H::DeviceInfo &deviceInfo, int DeviceID, int DeviceClassID) | |
| Default Constructor. | |
| virtual | ~GizmoLIRC () |
| Destructor. | |
Protected Attributes | |
| int | mDisabledRepeats |
| Number of disabled repeats. | |
| long | mLastEventTime |
| Time of last event. | |
| float | mMinTimeBetweenEvents |
| Minimum time between events (smooth out trigger happy controllers). | |
Friends | |
| class | boost::serialization::access |
This class contains all of the helper functions for making use of LIRC devices
Definition at line 61 of file GizmoLIRC.hpp.
| GizmoLIRC::GizmoLIRC | ( | ) |
Serialize Constructor.
GizmoLIRC Serialize Constructor.
Definition at line 71 of file GizmoLIRC.cpp.
References mDisabledRepeats, mLastEventTime, and mMinTimeBetweenEvents.
| GizmoLIRC::GizmoLIRC | ( | const H::DeviceInfo & | deviceInfo, | |
| int | DeviceID, | |||
| int | DeviceClassID | |||
| ) |
Default Constructor.
GizmoLIRC Default Constructor.
Definition at line 62 of file GizmoLIRC.cpp.
References mDisabledRepeats, mLastEventTime, and mMinTimeBetweenEvents.
| GizmoLIRC::~GizmoLIRC | ( | ) | [virtual] |
| std::string GizmoLIRC::getType | ( | ) | [virtual] |
Get the type of the Gizmo.
Get the type of this Gizmo.
Reimplemented from Gizmod::Gizmo.
Definition at line 91 of file GizmoLIRC.cpp.
References GIZMO_LIRC_TYPE.
| bool GizmoLIRC::processEvent | ( | GizmoEvent * | pEvent | ) | [virtual] |
Process an event.
| pEvent | The event to process |
Reimplemented from Gizmod::Gizmo.
Definition at line 100 of file GizmoLIRC.cpp.
References cdbg5, mDisabledRepeats, mLastEventTime, mMinTimeBetweenEvents, and Gizmod::GizmoEventLIRC::Repeat.
| void GizmoLIRC::setDisableFirstRepeats | ( | int | Repeats | ) |
Set the number of repeats to disable.
| Repeats | Number to disable |
Definition at line 119 of file GizmoLIRC.cpp.
References mDisabledRepeats.
| void GizmoLIRC::setMinimumTimeBetweenEvents | ( | float | Seconds | ) |
Set the minimum time between events.
| Seconds | The time in seconds |
Definition at line 130 of file GizmoLIRC.cpp.
References mMinTimeBetweenEvents.
1.5.3