#include <InputSystem.hpp>
Public Member Functions | |
InputSystem (Core::Logger *pLogger) | |
Constructor. | |
~InputSystem () | |
Destructor. | |
bool | initialize (void *windowHandle) |
Initialize input system. | |
void | terminate () |
Terminate input system. | |
void | update () |
Update input system. | |
bool | createKeyboardHandler () |
Create the keyboard handler, if not yet created. | |
void | releaseKeyboardHandler () |
Release the keyboard handler. | |
bool | createMouseHandler () |
Create the mouse handler, if not yet created. | |
void | releaseMouseHandler () |
Release the mouse handler. | |
Private Attributes | |
OIS::InputManager * | m_pInputManager |
OIS input manager. |
This is the main object which gives access to input devices such as the keyboard and the mouse. This is an implementation of the InputCore::InputSystem class using the OIS input library.
syBR::InputOIS::InputSystem::InputSystem | ( | Core::Logger * | pLogger | ) |
Constructor.
pLogger | Pointer to the instance of the logger to use |
Reimplemented from syBR::InputCore::InputSystem.
syBR::InputOIS::InputSystem::~InputSystem | ( | ) | [virtual] |
bool syBR::InputOIS::InputSystem::initialize | ( | void * | windowHandle | ) | [virtual] |
Initialize input system.
windowHandle | Handle of the window whose inputs are to be managed |
Implements syBR::InputCore::InputSystem.
void syBR::InputOIS::InputSystem::terminate | ( | ) | [virtual] |
void syBR::InputOIS::InputSystem::update | ( | ) | [virtual] |
bool syBR::InputOIS::InputSystem::createKeyboardHandler | ( | ) | [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.
Implements syBR::InputCore::InputSystem.
void syBR::InputOIS::InputSystem::releaseKeyboardHandler | ( | ) | [virtual] |
Release the keyboard handler.
This obviously won't do anything unless createKeyboardHandler() has been previously created
Implements syBR::InputCore::InputSystem.
bool syBR::InputOIS::InputSystem::createMouseHandler | ( | ) | [virtual] |
Create the mouse handler, if not yet created.
Only one keyboard mouse can ever be created, call it once when you need to retrieve mouse input.
Implements syBR::InputCore::InputSystem.
void syBR::InputOIS::InputSystem::releaseMouseHandler | ( | ) | [virtual] |
Release the mouse handler.
This obviously won't do anything unless createMouseHandler() has been previously created
Implements syBR::InputCore::InputSystem.
OIS::InputManager* syBR::InputOIS::InputSystem::m_pInputManager [private] |
OIS input manager.
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