#include <KeyboardHandler.hpp>
Public Member Functions | |
KeyboardHandler (OIS::Keyboard *pKeyboard) | |
Constructor. | |
~KeyboardHandler () | |
Destructor. | |
bool | isKeyDown (InputCore::KeyCode key) |
Check if a key is down. | |
Private Attributes | |
OIS::Keyboard * | m_pKeyboard |
OIS keyboard. | |
Static Private Attributes | |
static const OIS::KeyCode | sm_keyCodes [] |
Relationship between the InputCore keycodes and OIS keycodes. | |
Friends | |
class | InputSystem |
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::KeyboardHandler class using the OIS input library.
syBR::InputOIS::KeyboardHandler::KeyboardHandler | ( | OIS::Keyboard * | pKeyboard | ) |
Constructor.
syBR::InputOIS::KeyboardHandler::~KeyboardHandler | ( | ) | [virtual] |
bool syBR::InputOIS::KeyboardHandler::isKeyDown | ( | InputCore::KeyCode | key | ) | [virtual] |
Check if a key is down.
key | Key to be checked |
Implements syBR::InputCore::KeyboardHandler.
friend class InputSystem [friend] |
const OIS::KeyCode syBR::InputOIS::KeyboardHandler::sm_keyCodes [static, private] |
OIS::Keyboard* syBR::InputOIS::KeyboardHandler::m_pKeyboard [private] |
OIS keyboard.
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