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 Pos & | getMousePosition () |
const MouseButtonState & | getMouseButtonState () |
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 |