FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::CEGuiInputProcessor Class Reference

#include <ceguiinputprocessor.h>

+ Collaboration diagram for FIFE::CEGuiInputProcessor:

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...
 

Detailed Description

Definition at line 37 of file ceguiinputprocessor.h.

Constructor & Destructor Documentation

FIFE::CEGuiInputProcessor::CEGuiInputProcessor ( )

Constructor.

Definition at line 35 of file ceguiinputprocessor.cpp.

References initializeKeyMap().

FIFE::CEGuiInputProcessor::~CEGuiInputProcessor ( )

Destructor.

Definition at line 39 of file ceguiinputprocessor.cpp.

Member Function Documentation

void FIFE::CEGuiInputProcessor::initializeKeyMap ( )
private

Initialize the key translation map.

Definition at line 173 of file ceguiinputprocessor.cpp.

References m_keymap.

Referenced by CEGuiInputProcessor().

+ Here is the caller graph for this function:

bool FIFE::CEGuiInputProcessor::onSdlEvent ( SDL_Event &  event)

Injects input to the CEGUI system.

Returns
A boolean value indicating if the event was consumed or not.

Definition at line 42 of file ceguiinputprocessor.cpp.

References processKeyInput(), processMouseInput(), processMouseMotion(), and processTextInput().

Referenced by FIFE::CEGuiManager::onSdlEvent().

+ Here is the caller graph for this function:

bool FIFE::CEGuiInputProcessor::processKeyInput ( SDL_Event &  event)
private

Process a key input event.

Definition at line 73 of file ceguiinputprocessor.cpp.

References m_keymap.

Referenced by onSdlEvent().

+ Here is the caller graph for this function:

bool FIFE::CEGuiInputProcessor::processMouseInput ( SDL_Event &  event)
private

Process a mouse input event.

Definition at line 101 of file ceguiinputprocessor.cpp.

Referenced by onSdlEvent().

+ Here is the caller graph for this function:

bool FIFE::CEGuiInputProcessor::processMouseMotion ( SDL_Event &  event)
private

Process a mouse motion event.

Definition at line 169 of file ceguiinputprocessor.cpp.

Referenced by onSdlEvent().

+ Here is the caller graph for this function:

bool FIFE::CEGuiInputProcessor::processTextInput ( SDL_Event &  event)
private

Process a text input event.

Definition at line 94 of file ceguiinputprocessor.cpp.

Referenced by onSdlEvent().

+ Here is the caller graph for this function:

Member Data Documentation

std::map<SDL_Keycode, CEGUI::Key::Scan> FIFE::CEGuiInputProcessor::m_keymap
private

Holds translation of key scancodes from SDL to CEGUI.

Definition at line 78 of file ceguiinputprocessor.h.

Referenced by initializeKeyMap(), and processKeyInput().


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