home *** CD-ROM | disk | FTP | other *** search
- #include "InputManager.h"
- #include "InputDevice.h"
-
- void InputManager::add_key_event(const InputKeyEvent & event)
- {
- queue.push( event );
- }
-
- bool InputManager::key_queue_empty()
- {
- return queue.empty();
- }
-
- InputKeyEvent InputManager::get_key_event()
- {
- InputKeyEvent ev = queue.front();
- queue.pop();
- return ev;
- }
-
- void InputManager::unregister_device(InputDevice * device)
- {
- devices.remove( device );
- }
-
- void InputManager::register_device(InputDevice * device)
- {
- devices.push_back( device );
- }
-