FIFE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FIFE::CEGui_0InputProcessor Class Reference

#include <cegui-0inputprocessor.h>

+ Collaboration diagram for FIFE::CEGui_0InputProcessor:

Public Member Functions

 CEGui_0InputProcessor ()
 Constructor. More...
 
 ~CEGui_0InputProcessor ()
 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 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< SDLKey,
CEGUI::Key::Scan > 
m_keymap
 Holds translation of key scancodes from SDL to CEGUI. More...
 

Detailed Description

Definition at line 37 of file cegui-0inputprocessor.h.

Constructor & Destructor Documentation

FIFE::CEGui_0InputProcessor::CEGui_0InputProcessor ( )

Constructor.

Definition at line 35 of file cegui-0inputprocessor.cpp.

References initializeKeyMap().

FIFE::CEGui_0InputProcessor::~CEGui_0InputProcessor ( )

Destructor.

Definition at line 39 of file cegui-0inputprocessor.cpp.

Member Function Documentation

void FIFE::CEGui_0InputProcessor::initializeKeyMap ( )
private

Initialize the key translation map.

Definition at line 157 of file cegui-0inputprocessor.cpp.

References m_keymap.

Referenced by CEGui_0InputProcessor().

+ Here is the caller graph for this function:

bool FIFE::CEGui_0InputProcessor::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 cegui-0inputprocessor.cpp.

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

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

+ Here is the caller graph for this function:

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

Process a key input event.

Definition at line 68 of file cegui-0inputprocessor.cpp.

References m_keymap.

Referenced by onSdlEvent().

+ Here is the caller graph for this function:

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

Process a mouse input event.

Definition at line 90 of file cegui-0inputprocessor.cpp.

Referenced by onSdlEvent().

+ Here is the caller graph for this function:

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

Process a mouse motion event.

Definition at line 153 of file cegui-0inputprocessor.cpp.

Referenced by onSdlEvent().

+ Here is the caller graph for this function:

Member Data Documentation

std::map<SDLKey, CEGUI::Key::Scan> FIFE::CEGui_0InputProcessor::m_keymap
private

Holds translation of key scancodes from SDL to CEGUI.

Definition at line 74 of file cegui-0inputprocessor.h.

Referenced by initializeKeyMap(), and processKeyInput().


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