#include <OISKeyboard.h>
Inheritance diagram for OIS::Keyboard:
Public Types | |
enum | TextTranslationMode { Off, Unicode, Ascii } |
TextTranslation Mode. More... | |
enum | Modifier { Shift = 0x0000001, Ctrl = 0x0000010, Alt = 0x0000100 } |
Enum of bit position of modifer. More... | |
Public Member Functions | |
virtual | ~Keyboard () |
virtual bool | isKeyDown (KeyCode key)=0 |
virtual void | setEventCallback (KeyListener *keyListener) |
KeyListener * | getEventCallback () |
virtual void | setTextTranslation (TextTranslationMode mode) |
TextTranslationMode | getTextTranslation () |
virtual const std::string & | getAsString (KeyCode kc)=0 |
bool | isModifierDown (Modifier mod) |
virtual void | copyKeyStates (char keys[256])=0 |
Protected Member Functions | |
Keyboard () | |
Protected Attributes | |
unsigned int | mModifiers |
Bit field that holds status of Alt, Ctrl, Shift. | |
KeyListener * | listener |
Used for buffered/actionmapping callback. | |
TextTranslationMode | mTextMode |
The current translation mode. |
virtual OIS::Keyboard::~Keyboard | ( | ) | [inline, virtual] |
OIS::Keyboard::Keyboard | ( | ) | [protected] |
virtual bool OIS::Keyboard::isKeyDown | ( | KeyCode | key | ) | [pure virtual] |
key | A KeyCode to check |
virtual void OIS::Keyboard::setEventCallback | ( | KeyListener * | keyListener | ) | [inline, virtual] |
keyListener | Send a pointer to a class derived from KeyListener or 0 to clear the callback |
KeyListener* OIS::Keyboard::getEventCallback | ( | ) | [inline] |
virtual void OIS::Keyboard::setTextTranslation | ( | TextTranslationMode | mode | ) | [virtual] |
mode | Off, Unicode, Ascii |
TextTranslationMode OIS::Keyboard::getTextTranslation | ( | ) | [inline] |
virtual const std::string& OIS::Keyboard::getAsString | ( | KeyCode | kc | ) | [pure virtual] |
kc | KeyCode to convert |
bool OIS::Keyboard::isModifierDown | ( | Modifier | mod | ) |
virtual void OIS::Keyboard::copyKeyStates | ( | char | keys[256] | ) | [pure virtual] |
unsigned int OIS::Keyboard::mModifiers [protected] |
Bit field that holds status of Alt, Ctrl, Shift.
KeyListener* OIS::Keyboard::listener [protected] |
Used for buffered/actionmapping callback.
TextTranslationMode OIS::Keyboard::mTextMode [protected] |
The current translation mode.