1
0
Fork 0

include/Spectre/Input/InputEvent.h: Move MouseButton::Type to Mouse class.

This commit is contained in:
Henrik Hautakoski 2020-01-24 17:23:44 +01:00
parent b2ca926a00
commit 762d26f368
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
5 changed files with 35 additions and 37 deletions

View file

@ -17,7 +17,7 @@ public :
// Get mouse position
virtual Vector2f getPosition() const;
virtual bool isButtonDown(MouseButton::Type button) const;
virtual bool isButtonDown(Mouse::Button button) const;
static bool handleMessage(MSG message);
@ -28,7 +28,7 @@ protected :
protected :
Vector2f m_position;
bool m_state[MouseButton::NUM_MBUTTONS];
bool m_state[Mouse::Button::NUM_MBUTTONS];
bool m_tracked;
};