|
|
@ -24,7 +24,7 @@ namespace SFO
|
|
|
|
void setMouseEventCallback(MouseListener* listen) { mMouseListener = listen; }
|
|
|
|
void setMouseEventCallback(MouseListener* listen) { mMouseListener = listen; }
|
|
|
|
void setKeyboardEventCallback(KeyListener* listen) { mKeyboardListener = listen; }
|
|
|
|
void setKeyboardEventCallback(KeyListener* listen) { mKeyboardListener = listen; }
|
|
|
|
void setWindowEventCallback(WindowListener* listen) { mWindowListener = listen; }
|
|
|
|
void setWindowEventCallback(WindowListener* listen) { mWindowListener = listen; }
|
|
|
|
void setJoyEventCallback(JoyListener* listen) { mJoyListener = listen; }
|
|
|
|
void setJoyEventCallback(JoyListener* listen) { mJoyListener = listen; }
|
|
|
|
|
|
|
|
|
|
|
|
void capture(bool windowEventsOnly);
|
|
|
|
void capture(bool windowEventsOnly);
|
|
|
|
bool isModifierHeld(SDL_Keymod mod);
|
|
|
|
bool isModifierHeld(SDL_Keymod mod);
|
|
|
@ -54,7 +54,7 @@ namespace SFO
|
|
|
|
SFO::MouseListener* mMouseListener;
|
|
|
|
SFO::MouseListener* mMouseListener;
|
|
|
|
SFO::KeyListener* mKeyboardListener;
|
|
|
|
SFO::KeyListener* mKeyboardListener;
|
|
|
|
SFO::WindowListener* mWindowListener;
|
|
|
|
SFO::WindowListener* mWindowListener;
|
|
|
|
SFO::JoyListener* mJoyListener;
|
|
|
|
SFO::JoyListener* mJoyListener;
|
|
|
|
|
|
|
|
|
|
|
|
typedef boost::unordered_map<SDL_Keycode, OIS::KeyCode> KeyMap;
|
|
|
|
typedef boost::unordered_map<SDL_Keycode, OIS::KeyCode> KeyMap;
|
|
|
|
KeyMap mKeyMap;
|
|
|
|
KeyMap mKeyMap;
|
|
|
|