Carpenter Engine
A C++ game engine with a build once run anywhere solution
|
Singleton class used to handle mouse input. More...
#include <Mouse.hpp>
Public Member Functions | |
void | AddListener (Input *input) |
void | RemoveListener (Input *input) |
Vec2f | GetPosition () |
Returns the position of the mouse. | |
Static Public Member Functions | |
static Mouse & | GetInstance () |
Returns the singleton instance. | |
Singleton class used to handle mouse input.
This class is primarily used to return the current position of the mouse. If you want to listen for mouse button events, use the InputManager instead.
void Engine::Input::Mouse::AddListener | ( | Input * | input | ) |
@biref Adds an input listener to the mouse
input | Reference to the input to add |
Engine::Vec2f Engine::Input::Mouse::GetPosition | ( | ) |
Returns the position of the mouse.
void Engine::Input::Mouse::RemoveListener | ( | Input * | input | ) |
Removes an input listener
input | Reference to the input to remove |