- getCursorType
CursorType getCursorType()
* Returns the type of the cursor.
* For available returned values see CursorType.
- getLastPostion
Vector2F getLastPostion()
* Returns a 2d vector containing last mouse position.
- getPostion
Vector2F getPostion(Window window)
* Returns a 2d vector containing mouse position in the current window.
* You can choose what window to test with the given argument.
- getPreviousPostion
Vector2F getPreviousPostion()
* Returns a 2d vector containing previous mouse position.
- isButtonDown
bool isButtonDown(MouseButton button)
* Returns true if mouse button was just pressed in an event loop.
- isButtonHold
bool isButtonHold(MouseButton button)
* Returns true if mouse button is still pressed in an event loop.
* Use case: shooting something.
- isButtonNone
bool isButtonNone(MouseButton button)
* Returns true if mouse button has no input action in an event loop.
- isButtonUp
bool isButtonUp(MouseButton button)
* Returns true if mouse button was just released in an event loop.
- isMoving
bool isMoving()
* Returns true if mouse cursor is moving.
- isMovingDown
bool isMovingDown()
* Returns true if mouse cursor is moving down.
- isMovingLeft
bool isMovingLeft()
* Returns true if mouse cursor is moving left.
- isMovingRight
bool isMovingRight()
* Returns true if mouse cursor is moving right.
- isMovingUp
bool isMovingUp()
* Returns true if mouse cursor is moving up.
- isStaying
bool isStaying()
* Returns true if mouse cursor is staying.
- isUnfolding
bool isUnfolding(MouseButton button, MouseAction action)
- setCursorType
void setCursorType(CursorType cursorType, Window window)
* Set current cursor type.
* For available options see CursorType.
- setLastPosition
Mouse setLastPosition(Vector2F position)
Undocumented in source. Be warned that the author may not have intended to support it.
- setPosition
Mouse setPosition(Vector2F position)
Undocumented in source. Be warned that the author may not have intended to support it.
- setPreviousPostion
Mouse setPreviousPostion(Vector2F position)
Undocumented in source. Be warned that the author may not have intended to support it.
- update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
- wasMovingDown
bool wasMovingDown()
* Returns true if mouse cursor was moving down.
- wasMovingLeft
bool wasMovingLeft()
* Returns true if mouse cursor was moving left.
- wasMovingRight
bool wasMovingRight()
* Returns true if mouse cursor was moving right.
- wasMovingUp
bool wasMovingUp()
* Returns true if mouse cursor was moving up.
*