Castlekeep
A isometric castle build simulator
 All Classes Namespaces
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CastleKeep::InputManager Class Reference
Inheritance diagram for CastleKeep::InputManager:
CastleKeep::SDLInputManager

Public Member Functions

 InputManager (Game *game, Window *window)
 
void addMouseButtonEventListener (MouseButtonEventListener *listener)
 
void addMouseMotionEventListener (MouseMotionEventListener *listener)
 
void addMouseWheelEventListener (MouseWheelEventListener *listener)
 
void addKeyEventListener (KeyEventListener *listener)
 
void addQuitEventListener (QuitEventListener *listener)
 
bool getKeyState (KeyCode key)
 
bool getMouseButtonState (MouseButton button)
 
const PosgetMousePosition ()
 
const MouseButtonStategetMouseButtonState ()
 
virtual void processInput ()
 

Protected Member Functions

void notifyMouseButtonEventListeners (const MouseButtonEvent &event)
 
void notifyMouseMotionEventListeners (const MouseMotionEvent &event)
 
void notifyMouseWheelEventListeners (const MouseWheelEvent &event)
 
void notifyKeyEventListeners (const KeyEvent &event)
 
bool notifyQuitEventListener ()
 

Protected Attributes

MouseButtonState _mouse_state
 
Pos _mouse_position
 
std::map< KeyCode, bool > _key_state
 
std::forward_list
< MouseButtonEventListener * > 
_mouse_button_listeners
 
std::forward_list
< MouseMotionEventListener * > 
_mouse_motion_listeners
 
std::forward_list
< MouseWheelEventListener * > 
_mouse_wheel_listeners
 
std::forward_list
< KeyEventListener * > 
_key_listeners
 
QuitEventListener_quit_listener
 
Game_game
 
Window_window
 

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