#include <xrb_inputstate.hpp>

Public Member Functions | |
| Key const * | GetKey (Key::Code code) const |
| Key const * | GetKey (std::string const &name) const |
| bool | IsValidKeyCode (Key::Code code) const |
| bool | IsValidKeyName (std::string const &name) const |
| Key::Code | KeyCode (std::string const &name) const |
| std::string const & | KeyName (Key::Code code) const |
| bool | IsKeyPressed (Key::Code const code) const |
| bool | IsKeyPressed (std::string const &name) const |
| bool | IsEitherAltKeyPressed () const |
| bool | IsEitherControlKeyPressed () const |
| bool | IsEitherShiftKeyPressed () const |
| bool | IsCapsLockOn () const |
| bool | IsNumLockOn () const |
| bool | IsScrollLockOn () const |
| Key::Modifier | Modifier () const |
| void | ResetPressed () |
Protected Member Functions | |
| virtual bool | HandleEvent (Event const *e) |
| Subclasses must override this to provide the actual event handling necessary. | |
| void | InitKeyMaps () |
The InputState class will process events, and store the state of the keyboard and mouse buttons in a map (which indicates if any key is pressed or not). Key modifiers are also tracked and stored.
Definition at line 31 of file xrb_inputstate.hpp.
| bool Xrb::InputState::HandleEvent | ( | Event const * | e | ) | [protected, virtual] |
Subclasses must override this to provide the actual event handling necessary.
ProcessEvent calls this function to do the subclass-specific event handling. Overrides of this function should return true if the event was used, otherwise false.
Implements Xrb::EventHandler.
Definition at line 165 of file xrb_inputstate.cpp.
References Xrb::Event::GetEventType().
1.5.8