18 #ifndef INPUTMANAGER_H
19 #define INPUTMANAGER_H
37 int getButton(
void)
const;
39 bool isMousePressed(
void)
const;
40 bool isMouseReleased(
void)
const;
41 bool isShiftDown(
void)
const;
42 bool isControlDown(
void)
const;
43 bool isAltDown(
void)
const;
44 bool isSuperDown(
void)
const;
46 int getAction(
void)
const;
47 int getMod(
void)
const;
49 void setAction(
int action);
51 void setButton(
int button);
52 void setPosition(
const Vector2f &vector);
55 int mButton, mMod, mAction;
71 void setAction(
int action);
72 DEPRECATED
void setKey(
int key);
73 void setKeys( std::list< int > list );
74 void setKeyCode(
int keycode);
76 DEPRECATED
int getKeyValue(
void)
const;
77 std::list< int > getKeys(
void)
const;
80 int getKeyScanCode(
void)
const;
81 bool isKeyPressed(
int key)
const;
82 bool isKeyReleased(
int key)
const;
83 bool isShiftDown(
void)
const;
84 bool isControlDown(
void)
const;
85 bool isAltDown(
void)
const;
86 bool isSuperDown(
void)
const;
89 int mMod , mAction , mKey , mKeyCode;
90 std::list< int > m_keys;
119 using IListenerList = std::list< InputListener * >;
149 void PollEvents( GLFWwindow * window );
172 void capture(
int mouseX ,
int mouseY);
183 void createKeyListEvent( std::list< int > keys );
218 double timeSinceLastFrame;
223 #endif // INPUTMANAGER_H
The KeyEvent - Event class.
Definition: input.h:64
The MouseEvent - Event class.
Definition: input.h:31