Function Get-Mouse-Button

Part of:

package glfw
( get-mouse-button < button > )
Parameters
button
A mouse button identifier, which can be one of the mouse button identifiers listed in table 3.4.
Return values
The function returns GLFW_PRESS if the mouse button is held down, or GLFW_RELEASE if the
mouse button is not held down.
Description
The function queries the current state of a specific mouse button.
Notes
A window must be opened for the function to have any effect, and glfwPollEvents, glfwWaitEvents or
glfwSwapBuffers must be called before any mouse button events are recorded and reported by
glfwGetMouseButton.
GLFW_MOUSE_BUTTON_LEFT is equal to GLFW_MOUSE_BUTTON_1.
GLFW_MOUSE_BUTTON_RIGHT is equal to GLFW_MOUSE_BUTTON_2.
GLFW_MOUSE_BUTTON_MIDDLE is equal to GLFW_MOUSE_BUTTON_3.