Mouse
click()
// SYNTAX
Mouse.click();
Mouse.click(button);
Momentarily clicks specified mouse button at the current cursor position. A click is a press() quickly followed by release().
// EXAMPLE USAGE
// Click left mouse button
Mouse.click(MOUSE_LEFT);
// Click right mouse button
Mouse.click(MOUSE_RIGHT);
// Click middle mouse button
Mouse.click(MOUSE_MIDDLE);
// Click both left and right mouse buttons at the same time
Mouse.click(MOUSE_LEFT | MOUSE_RIGHT);
Parameters:
button: which mouse button to click -uint8_t-MOUSE_LEFT(default),MOUSE_RIGHT,MOUSE_MIDDLEor any ORed (|) combination of buttons for simultaneous clicks
click() does not return anything.