Mouse.move()
Description
Moves the cursor on a connected computer. The motion onscreen is always relative to the cursor's current location. Before using Mouse.move() you must call Mouse.begin()
Syntax
Mouse.move(xVal, yVal, wheel)
Parameter Values
- xVal: amount to move along the x-axis. Allowed data types: signed char.
- yVal: amount to move along the y-axis. Allowed data types: signed char.
- wheel: amount to move scroll wheel. Allowed data types: signed char.
Return Values
- Nothing
Example Code
※ NOTES AND WARNINGS:
When you use the Mouse.move() command, the Arduino takes over your mouse! Make sure you have control before you use the command. A pushbutton to toggle the mouse control state is effective.
See Also
- Language : Arduino - Mouse
- Language : Mouse.begin()
- Language : Mouse.click()
- Language : Mouse.end()
- Language : Mouse.isPressed()
- Language : Mouse.press()
- Language : Mouse.release()
- Language : Mouse.click()
- Language : Mouse.end()
- Language : Mouse.press()
- Language : Mouse.release()
- Language : Mouse.isPressed()
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |