Orxonox
0.0.5 Codename: Arcturus
|
Linux implementation of Keyboard object - uses x11. More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/ois/linux/LinuxKeyboard.h>
Public Member Functions | |
LinuxKeyboard (InputManager *creator, bool buffered, bool grab) | |
virtual | ~LinuxKeyboard () |
virtual void | _initialize () |
virtual void | capture () |
virtual void | copyKeyStates (char keys[256]) const |
virtual const std::string & | getAsString (KeyCode kc) |
virtual bool | isKeyDown (KeyCode key) const |
virtual Interface * | queryInterface (Interface::IType) |
virtual void | setBuffered (bool buffered) |
Public Member Functions inherited from OIS::Keyboard | |
virtual | ~Keyboard () |
KeyListener * | getEventCallback () const |
TextTranslationMode | getTextTranslation () const |
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 bool | buffered () const |
InputManager * | getCreator () const |
virtual int | getID () const |
Type | type () const |
const std::string & | vendor () const |
Protected Types | |
typedef std::map< KeySym, KeyCode > | XtoOIS_KeyMap |
1:1 Conversion Map between X Key Events and OIS KeyCodes More... | |
Protected Member Functions | |
bool | _injectKeyDown (KeySym key, int text) |
bool | _injectKeyUp (KeySym key) |
bool | _isKeyRepeat (XEvent &event) |
Protected Member Functions inherited from OIS::Keyboard | |
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 | |
Display * | display |
bool | grabKeyboard |
char | KeyBuffer [256] |
Depressed Key List. More... | |
XtoOIS_KeyMap | keyConversion |
bool | keyFocusLost |
std::string | mGetString |
Window | window |
X11 Stuff. More... | |
Protected Attributes inherited from OIS::Keyboard | |
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... | |
Additional Inherited Members | |
Public Types inherited from OIS::Keyboard | |
enum | Modifier { Shift = 0x0000001, Ctrl = 0x0000010, Alt = 0x0000100 } |
Enum of bit position of modifer. More... | |
enum | TextTranslationMode { Off, Unicode, Ascii } |
TextTranslation Mode. More... | |
Linux implementation of Keyboard object - uses x11.
|
protected |
1:1 Conversion Map between X Key Events and OIS KeyCodes
LinuxKeyboard::LinuxKeyboard | ( | InputManager * | creator, |
bool | buffered, | ||
bool | grab | ||
) |
|
virtual |
|
virtual |
Implements OIS::Object.
|
protected |
|
protected |
|
inlineprotected |
|
virtual |
Implements OIS::Object.
|
virtual |
Implements OIS::Keyboard.
|
virtual |
kc | KeyCode to convert |
Implements OIS::Keyboard.
|
virtual |
|
inlinevirtual |
type | The type of interface you are looking for |
Implements OIS::Object.
|
virtual |
Implements OIS::Object.
|
protected |
|
protected |
|
protected |
Depressed Key List.
|
protected |
|
protected |
|
protected |
|
protected |
X11 Stuff.