JoystickSource Class Reference
[Device Input Classes]
This class implements a simple EventGenerator.
More...
#include <JoystickSource.h>
Public Member Functions | |
| int | isEventGenerator () |
| void | push () |
Public Attributes | |
| int | id |
| Event | event |
Protected Member Functions | |
| JoystickSource (int id_) | |
Protected Attributes | |
| Event | tmpEvent |
| int | changed |
Friends | |
| class | JoystickModule |
Detailed Description
This class implements a simple EventGenerator.It is updated by the JoystickModule.
- Author:
- Rainer Splechtna
Definition at line 73 of file JoystickSource.h.
Constructor & Destructor Documentation
| JoystickSource::JoystickSource | ( | int | id_ | ) | [inline, protected] |
simple constructor, sets members to initial values
- Parameters:
-
id_ joystick ID
Definition at line 86 of file JoystickSource.h.
Member Function Documentation
| int JoystickSource::isEventGenerator | ( | ) | [inline] |
tests for EventGenerator interface being present.
Is overriden to return 1 always.
- Returns:
- always 1
Definition at line 100 of file JoystickSource.h.
| void JoystickSource::push | ( | void | ) | [inline] |
pushes event down the line.
Definition at line 105 of file JoystickSource.h.
Referenced by ot::JoystickModule::pushEvent().
Friends And Related Function Documentation
friend class JoystickModule [friend] |
Definition at line 111 of file JoystickSource.h.
Member Data Documentation
int JoystickSource::changed [protected] |
a flag to indicate whether tmpEvent was changed during processing
Definition at line 94 of file JoystickSource.h.
Referenced by ot::JoystickModule::pollJoysticks(), and ot::JoystickModule::pushEvent().
| Event JoystickSource::event |
the event that is posted to the EventObservers
Definition at line 80 of file JoystickSource.h.
Referenced by ot::JoystickModule::pushEvent().
stores joystick ID
Definition at line 78 of file JoystickSource.h.
Referenced by ot::JoystickModule::pollJoysticks().
Event JoystickSource::tmpEvent [protected] |
the event that is updated by the
- See also:
- JostickModule polling thread.
Definition at line 92 of file JoystickSource.h.
Referenced by ot::JoystickModule::pollJoysticks(), and ot::JoystickModule::pushEvent().
The documentation for this class was generated from the following file: