FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <ceguiinputprocessor.h>
Public Member Functions | |
CEGuiInputProcessor () | |
Constructor. More... | |
~CEGuiInputProcessor () | |
Destructor. More... | |
bool | onSdlEvent (SDL_Event &event) |
Injects input to the CEGUI system. More... | |
Private Member Functions | |
bool | processKeyInput (SDL_Event &event) |
Process a key input event. More... | |
bool | processTextInput (SDL_Event &event) |
Process a text input event. More... | |
bool | processMouseInput (SDL_Event &event) |
Process a mouse input event. More... | |
bool | processMouseMotion (SDL_Event &event) |
Process a mouse motion event. More... | |
void | initializeKeyMap () |
Initialize the key translation map. More... | |
Private Attributes | |
std::map< SDL_Keycode, CEGUI::Key::Scan > | m_keymap |
Holds translation of key scancodes from SDL to CEGUI. More... | |
Definition at line 37 of file ceguiinputprocessor.h.
FIFE::CEGuiInputProcessor::CEGuiInputProcessor | ( | ) |
FIFE::CEGuiInputProcessor::~CEGuiInputProcessor | ( | ) |
Destructor.
Definition at line 39 of file ceguiinputprocessor.cpp.
|
private |
Initialize the key translation map.
Definition at line 173 of file ceguiinputprocessor.cpp.
References m_keymap.
Referenced by CEGuiInputProcessor().
bool FIFE::CEGuiInputProcessor::onSdlEvent | ( | SDL_Event & | event | ) |
Injects input to the CEGUI system.
Definition at line 42 of file ceguiinputprocessor.cpp.
References processKeyInput(), processMouseInput(), processMouseMotion(), and processTextInput().
Referenced by FIFE::CEGuiManager::onSdlEvent().
|
private |
Process a key input event.
Definition at line 73 of file ceguiinputprocessor.cpp.
References m_keymap.
Referenced by onSdlEvent().
|
private |
Process a mouse input event.
Definition at line 101 of file ceguiinputprocessor.cpp.
Referenced by onSdlEvent().
|
private |
Process a mouse motion event.
Definition at line 169 of file ceguiinputprocessor.cpp.
Referenced by onSdlEvent().
|
private |
Process a text input event.
Definition at line 94 of file ceguiinputprocessor.cpp.
Referenced by onSdlEvent().
|
private |
Holds translation of key scancodes from SDL to CEGUI.
Definition at line 78 of file ceguiinputprocessor.h.
Referenced by initializeKeyMap(), and processKeyInput().