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

Public Member Functions

 SDLInputManager (Game *game, Window *window)
 
void processInput ()
 
- Public Member Functions inherited from CastleKeep::InputManager
 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from CastleKeep::InputManager
void notifyMouseButtonEventListeners (const MouseButtonEvent &event)
 
void notifyMouseMotionEventListeners (const MouseMotionEvent &event)
 
void notifyMouseWheelEventListeners (const MouseWheelEvent &event)
 
void notifyKeyEventListeners (const KeyEvent &event)
 
bool notifyQuitEventListener ()
 
- Protected Attributes inherited from CastleKeep::InputManager
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: