Mouse

Mouse

Members

Static functions

initialize
void initialize(GLFWwindow* window)

Constructs the underlying data needed

isButtonClicked
bool isButtonClicked(MouseButton button)

Gets whether the button was clicked

isButtonPressed
bool isButtonPressed(MouseButton button)

Gets if a mouse button is pressed

isButtonReleased
bool isButtonReleased(MouseButton button)

Gets if a mouse button is released

isButtonUnclicked
bool isButtonUnclicked(MouseButton button)

Gets whether the button was clicked

position
vec2 position()

Gets mouse position

update
void update()

Updates the mouse state for single-clicking

Meta