#include <InputSystem.hpp>

Public Member Functions | |
| InputSystem (Core::Logger *pLogger) | |
| Constructor. | |
| virtual | ~InputSystem () |
| Destructor. | |
| virtual bool | initialize (void *windowHandle)=0 |
| Initialize input system. | |
| virtual void | terminate ()=0 |
| Terminate input system. | |
| virtual void | update () |
| Update input system. | |
| virtual bool | createKeyboardHandler ()=0 |
| Create the keyboard handler, if not yet created. | |
| virtual void | releaseKeyboardHandler ()=0 |
| Release the keyboard handler. | |
| virtual bool | createMouseHandler ()=0 |
| Create the mouse handler, if not yet created. | |
| virtual void | releaseMouseHandler ()=0 |
| Release the Mouse handler. | |
| KeyboardHandler * | getKeyboardHandler () |
| Get the keyboard handler. | |
| MouseHandler * | getMouseHandler () |
| Get the mouse handler. | |
Protected Attributes | |
| Core::Logger * | m_pLogger |
| Pointer to the logger to be used. | |
| KeyboardHandler * | m_pKeyboardHandler |
| Keyboard handler. | |
| MouseHandler * | m_pMouseHandler |
| Mouse handler. | |
This is the main object which gives access to input devices such as the keyboard and the mouse. This is a pure abstract class which needs a concrete implementation (using OIS, DirectInput or any other input library).
| syBR::InputCore::InputSystem::InputSystem | ( | Core::Logger * | pLogger | ) |
Constructor.
| pLogger | Pointer to the instance of the logger to use |
Reimplemented in syBR::InputOIS::InputSystem.
| syBR::InputCore::InputSystem::~InputSystem | ( | ) | [virtual] |
| virtual bool syBR::InputCore::InputSystem::initialize | ( | void * | windowHandle | ) | [pure virtual] |
Initialize input system.
| windowHandle | Handle of the window whose inputs are to be managed |
Implemented in syBR::InputOIS::InputSystem.
| virtual void syBR::InputCore::InputSystem::terminate | ( | ) | [pure virtual] |
| void syBR::InputCore::InputSystem::update | ( | ) | [virtual] |
| virtual bool syBR::InputCore::InputSystem::createKeyboardHandler | ( | ) | [pure virtual] |
Create the keyboard handler, if not yet created.
Only one keyboard handler can ever be created, call it once when you need to retrieve keyboard input.
Implemented in syBR::InputOIS::InputSystem.
| virtual void syBR::InputCore::InputSystem::releaseKeyboardHandler | ( | ) | [pure virtual] |
Release the keyboard handler.
This obviously won't do anything unless createKeyboardHandler() has been previously created
Implemented in syBR::InputOIS::InputSystem.
| virtual bool syBR::InputCore::InputSystem::createMouseHandler | ( | ) | [pure virtual] |
Create the mouse handler, if not yet created.
Only one mouse handler can ever be created, call it once when you need to retrieve mouse input.
Implemented in syBR::InputOIS::InputSystem.
| virtual void syBR::InputCore::InputSystem::releaseMouseHandler | ( | ) | [pure virtual] |
Release the Mouse handler.
This obviously won't do anything unless createMouseHandler() has been previously created
Implemented in syBR::InputOIS::InputSystem.
| KeyboardHandler * syBR::InputCore::InputSystem::getKeyboardHandler | ( | ) |
Get the keyboard handler.
| MouseHandler * syBR::InputCore::InputSystem::getMouseHandler | ( | ) |
Get the mouse handler.
Core::Logger* syBR::InputCore::InputSystem::m_pLogger [protected] |
Pointer to the logger to be used.
Keyboard handler.
Mouse handler.
Copyright © 2008 by Sebastien Frippiat

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:34 2008