5 #include <OISKeyboard.h>
16 class InputAggregator;
36 const OIS::KeyCode
key;
94 const std::list<KeyEvent>&
105 OIS::InputManager* inputManager,
106 CEGUI::InputAggregator* aggregator
172 struct Implementation;
173 std::unique_ptr<Implementation> m_impl;
void init(OIS::InputManager *inputManager, CEGUI::InputAggregator *aggregator)
Initializes the keyboard.
Definition: keyboard.cpp:289
Definition: script_wrappers.h:5
void shutdown()
Shuts down the keyboard.
Definition: keyboard.cpp:313
~Keyboard()
Destructor.
Definition: keyboard.cpp:279
const bool shift
true if the Shift modifier was pressed during the event
Definition: keyboard.h:56
Handles keyboard events.
Definition: keyboard.h:24
const bool ctrl
true if the Ctrl modifier was pressed during the event
Definition: keyboard.h:51
Definition: bullet_to_ogre_system.h:5
Definition: bullet_ogre_conversion.h:6
bool isKeyDown(OIS::KeyCode key) const
Checks whether a key is pressed down.
Definition: keyboard.cpp:305
bool wasKeyPressed(OIS::KeyCode key) const
Checks whether a key was pressed down since the last frame.
Definition: keyboard.cpp:330
Represents a single key press or release.
Definition: keyboard.h:31
bool wasKeyReleased(OIS::KeyCode key) const
Checks whether a key was released since the last frame.
Definition: keyboard.cpp:340
static luabind::scope luaBindings()
Lua bindings.
Definition: keyboard.cpp:108
const bool pressed
true if the key was pressed, false if it was released
Definition: keyboard.h:41
const bool alt
true if the Alt modifier was pressed during the event
Definition: keyboard.h:46
Keyboard()
Constructor.
Definition: keyboard.cpp:273
const std::list< KeyEvent > & eventQueue() const
A list of key events in the current frame.
Definition: keyboard.cpp:283
void update()
Updates the queue with new events.
Definition: keyboard.cpp:321
const OIS::KeyCode key
The key that was pressed.
Definition: keyboard.h:36