include/Spectre/Input/Mouse.h: add getPositionAbs() to the interface.
This commit is contained in:
parent
fa0fc72eb0
commit
e0d95a1135
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue