Orxonox
0.0.5 Codename: Arcturus
|
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/ois/OISKeyboard.h>
Public Types | |
enum | Modifier { Shift = 0x0000001, Ctrl = 0x0000010, Alt = 0x0000100 } |
Enum of bit position of modifer. More... | |
enum | TextTranslationMode { Off, Unicode, Ascii } |
TextTranslation Mode. More... | |
Public Member Functions | |
virtual | ~Keyboard () |
virtual void | copyKeyStates (char keys[256]) const =0 |
virtual const std::string & | getAsString (KeyCode kc)=0 |
KeyListener * | getEventCallback () const |
TextTranslationMode | getTextTranslation () const |
virtual bool | isKeyDown (KeyCode key) const =0 |
bool | isModifierDown (Modifier mod) const |
virtual void | setEventCallback (KeyListener *keyListener) |
virtual void | setTextTranslation (TextTranslationMode mode) |
Public Member Functions inherited from OIS::Object | |
virtual | ~Object () |
virtual void | _initialize ()=0 |
virtual bool | buffered () const |
virtual void | capture ()=0 |
InputManager * | getCreator () const |
virtual int | getID () const |
virtual Interface * | queryInterface (Interface::IType type)=0 |
virtual void | setBuffered (bool buffered)=0 |
Type | type () const |
const std::string & | vendor () const |
Protected Member Functions | |
Keyboard (const std::string &vendor, bool buffered, int devID, InputManager *creator) | |
Protected Member Functions inherited from OIS::Object | |
Object (const std::string &vendor, Type iType, bool buffered, int devID, InputManager *creator) | |
Protected Attributes | |
KeyListener * | mListener |
Used for buffered/actionmapping callback. More... | |
unsigned int | mModifiers |
Bit field that holds status of Alt, Ctrl, Shift. More... | |
TextTranslationMode | mTextMode |
The current translation mode. More... | |
Protected Attributes inherited from OIS::Object | |
bool | mBuffered |
Buffered flag. More... | |
InputManager * | mCreator |
The creator who created this object. More... | |
int | mDevID |
Not fully implemented yet. More... | |
Type | mType |
Type of controller object. More... | |
std::string | mVendor |
Vendor name if applicable/known. More... | |
Keyboard base class.
To be implemented by specific system (ie. DirectX Keyboard) This class is useful as you remain OS independent using this common interface.
|
inlinevirtual |
|
inlineprotected |
|
pure virtual |
Implemented in OIS::Win32Keyboard, OIS::MacKeyboard, and OIS::LinuxKeyboard.
|
pure virtual |
kc | KeyCode to convert |
Implemented in OIS::MacKeyboard, OIS::Win32Keyboard, and OIS::LinuxKeyboard.
|
inline |
|
inline |
|
pure virtual |
key | A KeyCode to check |
Implemented in OIS::Win32Keyboard, OIS::MacKeyboard, and OIS::LinuxKeyboard.
bool Keyboard::isModifierDown | ( | Modifier | mod | ) | const |
|
inlinevirtual |
keyListener | Send a pointer to a class derived from KeyListener or 0 to clear the callback |
|
virtual |
mode | Off, Unicode, Ascii |
|
protected |
Used for buffered/actionmapping callback.
|
protected |
Bit field that holds status of Alt, Ctrl, Shift.
|
protected |
The current translation mode.