Public Member Functions

FIFE::EventManager Class Reference

#include <eventmanager.h>

Inheritance diagram for FIFE::EventManager:
Inheritance graph
[legend]
Collaboration diagram for FIFE::EventManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 EventManager ()
virtual ~EventManager ()
EventSourceType getEventSourceType ()
void processEvents ()
void setMouseSensitivity (float sensitivity)
float getMouseSensitivity () const
void setMouseAcceleration (bool acceleration)
bool getMouseAcceleration () const

Detailed Description

Event Manager manages all events related to FIFE

Definition at line 66 of file eventmanager.h.


Constructor & Destructor Documentation

FIFE::EventManager::EventManager (  ) 

Constructor.

Definition at line 45 of file eventmanager.cpp.

FIFE::EventManager::~EventManager (  )  [virtual]

Destructor

Definition at line 64 of file eventmanager.cpp.


Member Function Documentation

EventSourceType FIFE::EventManager::getEventSourceType (  )  [virtual]

Gets the source type of this event

Returns:
source type of this event

Implements FIFE::IEventSource.

Definition at line 624 of file eventmanager.cpp.

bool FIFE::EventManager::getMouseAcceleration (  )  const

Gets mouse acceleration

Definition at line 649 of file eventmanager.cpp.

float FIFE::EventManager::getMouseSensitivity (  )  const

Gets mouse sensitivity

Definition at line 641 of file eventmanager.cpp.

void FIFE::EventManager::processEvents (  ) 

Process the SDL event queue. This is to be called only by the engine itself once per frame. It passes appropriate events to their listeners

Definition at line 357 of file eventmanager.cpp.

References FIFE::Command::setSource().

void FIFE::EventManager::setMouseAcceleration ( bool  acceleration  ) 

Sets mouse acceleration if mouse acceleration is enabled, then the mouse sensitivity is used as speed max.

Definition at line 645 of file eventmanager.cpp.

void FIFE::EventManager::setMouseSensitivity ( float  sensitivity  ) 

Sets mouse sensitivity The sensitivity is limited to the range -0.99 - 10.0.

Definition at line 632 of file eventmanager.cpp.


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