#include <mod_base_keyboard.hh>
Public Member Functions | |
| CLASS_METHOD Keyboard & | GetInstance (void) |
| void | Register (SharedPtr< Functor > functor) |
| Percent | GetResponsePercent (void) |
| void | AdjustResponse (const Percent percent) |
Private Member Functions | |
| Keyboard (void) | |
| ~Keyboard () | |
| void | Enable (void) |
| void | Tick (void) |
Private Attributes | |
| CLASS_VAR Keyboard * | msInstance |
| singleton | |
| bool | mInit |
| if initialized/enabled | |
| shptr< Functor > | mFunctor |
| keyboard handler | |
| Percent | mResponsePercent |
| counterpart of Joystck::mResponsePercent | |
Friends | |
| class | TimerFunctor |
Classes | |
| class | Functor |
| class | TimerFunctor |
This class initializes and enables the lower-level inp::Keyboard class and serves as a registry for a higher-level keyboard handler of a specific Module. Keyboard::Register() both enables the keyboard and registers a handler.
inp::Keyboard --> mod_base::Keyboard --> mod_sim keyboard handler
There are two Keyboard classes: inp::Keyboard and mod_base::Keyboard.
| mod_base::Keyboard::Keyboard | ( | void | ) | [private] |
ctor/dtor. Enable() enables the keyboard.
| mod_base::Keyboard::~Keyboard | ( | ) | [private] |
| Keyboard & mod_base::Keyboard::GetInstance | ( | void | ) |
Singleton method.
| void mod_base::Keyboard::Register | ( | SharedPtr< Functor > | functor | ) |
| void mod_base::Keyboard::AdjustResponse | ( | const Percent | percent | ) |
| void mod_base::Keyboard::Enable | ( | void | ) | [private] |
Initialize/enable keyboard.
| void mod_base::Keyboard::Tick | ( | void | ) | [private] |
Poll keyboard event queue every timer-tick. Call registered call when a key is pressed/released.
friend class TimerFunctor [friend] |
Keyboard * mod_base::Keyboard::msInstance [private] |
singleton
bool mod_base::Keyboard::mInit [private] |
if initialized/enabled
shptr<Functor> mod_base::Keyboard::mFunctor [private] |
keyboard handler
Percent mod_base::Keyboard::mResponsePercent [private] |
counterpart of Joystck::mResponsePercent
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:29 2007