SFML
Simple and Fast Multimedia Library
Loading...
Searching...
No Matches
Mouse.hpp File Reference
Include dependency graph for Mouse.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sf
namespace  sf::Mouse
 Give access to the real-time state of the mouse.

Enumerations

enum class  sf::Mouse::Button {
  sf::Mouse::Left , sf::Mouse::Right , sf::Mouse::Middle , sf::Mouse::Extra1 ,
  sf::Mouse::Extra2
}
 Mouse buttons. More...
enum class  sf::Mouse::Wheel { sf::Mouse::Vertical , sf::Mouse::Horizontal }
 Mouse wheels. More...

Functions

SFML_WINDOW_API bool sf::Mouse::isButtonPressed (Button button)
 Check if a mouse button is pressed.
SFML_WINDOW_API Vector2i sf::Mouse::getPosition ()
 Get the current position of the mouse in desktop coordinates.
SFML_WINDOW_API Vector2i sf::Mouse::getPosition (const WindowBase &relativeTo)
 Get the current position of the mouse in window coordinates.
SFML_WINDOW_API void sf::Mouse::setPosition (Vector2i position)
 Set the current position of the mouse in desktop coordinates.
SFML_WINDOW_API void sf::Mouse::setPosition (Vector2i position, const WindowBase &relativeTo)
 Set the current position of the mouse in window coordinates.