Orxonox: orxonox::KeyDetector Class Reference

# orxonox::KeyDetector Class Reference

`#include <src/core/input/KeyDetector.h>`

Inheritance diagram for orxonox::KeyDetector:

List of all members.

## Public Member Functions

void | JoyStickDeviceNumberChanged (unsigned int value)
| KeyDetector ()
| Constructor.
void | setCallbackCommand (const std::string &command)
| Assigns all the buttons 'command' plus the button's name.
| ~KeyDetector ()
| Destructor.

## Private Attributes

std::string | callbackCommand_

## Constructor & Destructor Documentation

orxonox::KeyDetector::KeyDetector | ( |  | ) |

Constructor.

References RegisterObject.

orxonox::KeyDetector::~KeyDetector | ( |  | ) |

Destructor.

## Member Function Documentation

void orxonox::KeyDetector::JoyStickDeviceNumberChanged | ( | unsigned int | value | ) | `[virtual]`

Reimplemented from orxonox::KeyBinder.

References callbackCommand_, orxonox::KeyBinder::JoyStickDeviceNumberChanged(), and setCallbackCommand().

void orxonox::KeyDetector::setCallbackCommand | ( | const std::string & | command | ) |

Assigns all the buttons 'command' plus the button's name.

References orxonox::KeyBinder::allButtons_, callbackCommand_, and orxonox::KeyBinder::clearBindings().

Referenced by JoyStickDeviceNumberChanged(), and orxonox::InputManager::setKeyDetectorCallback().

## Member Data Documentation

std::string orxonox::KeyDetector::callbackCommand_`[private]`

Referenced by JoyStickDeviceNumberChanged(), and setCallbackCommand().

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

- src/core/input/KeyDetector.h
- src/core/input/KeyDetector.cc