releaseMouse()

Environment

Description

Unlocks the cursor from the window and restores normal OS cursor behavior. Call after captureMouse() when the player opens a menu or pauses.

Syntax

void releaseMouse()

Parameters

None

Returns

void

Related

Under the Hood

From Processing.h:

void releaseMouse();

Under the Hood

From Processing.cpp:

void PApplet::releaseMouse(){if(gWindow){glfwSetInputMode(gWindow,GLFW_CURSOR,GLFW_CURSOR_NORMAL); glfwSetInputMode(gWindow,GLFW_RAW_MOUSE_MOTION,GLFW_FALSE);}}