Orxonox: OIS::KeyListener Class Reference

# OIS::KeyListener Class Reference

`#include <src/ois/OISKeyboard.h>`

Inheritance diagram for OIS::KeyListener:

List of all members.

## Public Member Functions

virtual bool | keyPressed (const KeyEvent &arg)=0
virtual bool | keyReleased (const KeyEvent &arg)=0
virtual | ~KeyListener ()

## Detailed Description

To recieve buffered keyboard input, derive a class from this, and implement the methods here. Then set the call back to your Keyboard instance with Keyboard::setEventCallback

## Constructor & Destructor Documentation

virtual OIS::KeyListener::~KeyListener | ( |  | ) | `[inline, virtual]`

## Member Function Documentation

virtual bool OIS::KeyListener::keyPressed | ( | const KeyEvent & | arg | ) | `[pure virtual]`

Implemented in orxonox::InputManager.

Referenced by OIS::LinuxKeyboard::_injectKeyDown(), OIS::Win32Keyboard::_readBuffered(), and OIS::MacKeyboard::capture().

virtual bool OIS::KeyListener::keyReleased | ( | const KeyEvent & | arg | ) | `[pure virtual]`

Implemented in orxonox::InputManager.

Referenced by OIS::LinuxKeyboard::_injectKeyUp(), OIS::Win32Keyboard::_readBuffered(), and OIS::MacKeyboard::capture().

The documentation for this class was generated from the following file:

- src/ois/OISKeyboard.h