1
0
Fork 0

include/Spectre/Input/Mouse.h: add getPositionAbs() to the interface.

This commit is contained in:
Henrik Hautakoski 2020-02-01 22:40:14 +01:00
parent fa0fc72eb0
commit e0d95a1135
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745

View file

@ -24,10 +24,13 @@ public :
public :
virtual ~Mouse();
// Get mouse position
// Get the position in relative (focused window) coordinates.
// coordinates are relative to the window's top-left corner.
virtual Vector2f getPosition() const = 0;
//virtual Vector2i getPositionAbs() const = 0;
// Get the position in absolute (screen) coordinates.
// 0,0 is located at the screen's top-left corner.
virtual Vector2f getAbsPosition() const = 0;
virtual bool isButtonDown(Button button) const = 0;