// SYNTAX Mouse.release(); Mouse.release(button);
Releases previously pressed mouse button at the current cursor position.
// EXAMPLE USAGE // Release left mouse button Mouse.release(MOUSE_LEFT); // Release right mouse button Mouse.release(MOUSE_RIGHT); // Release middle mouse button Mouse.release(MOUSE_MIDDLE); // Release both left and right mouse buttons at the same time Mouse.release(MOUSE_LEFT | MOUSE_RIGHT);
button: which mouse button to release -
MOUSE_MIDDLEor any ORed (
|) combination of buttons to release simultaneously. To release all buttons simultaneously,
MOUSE_ALLcan also be used.
release() does not return anything.