Skip to content

Commit 1b0b398

Browse files
committed
spell out moveAbsolute on the advice of David Mellis
1 parent 092dbd7 commit 1b0b398

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

build/shared/examples/09.USB/Mouse/AbsoluteMouse/AbsoluteMouse.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ void setup() {
1818

1919
void loop() {
2020

21-
Mouse.moveAbs(16384,16384); // Jump to the center of the screen
21+
Mouse.moveAbsolute(16384,16384); // Jump to the center of the screen
2222
delay(2500);
23-
Mouse.moveAbs(0, 0); // X position, Y position
23+
Mouse.moveAbsolute(0, 0); // X position, Y position
2424
delay(2500);
25-
Mouse.moveAbs(0, 32767);
25+
Mouse.moveAbsolute(0, 32767);
2626
delay(2500);
27-
Mouse.moveAbs(32767, 32767);
27+
Mouse.moveAbsolute(32767, 32767);
2828
delay(2500);
29-
Mouse.moveAbs(32767,0);
29+
Mouse.moveAbsolute(32767,0);
3030
delay(2500);
3131
}
3232

build/shared/lib/keywords.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ releaseAll KEYWORD2
220220
accept KEYWORD2
221221
click KEYWORD2
222222
move KEYWORD2
223-
moveAbs KEYWORD2
223+
moveAbsolute KEYWORD2
224224
write KEYWORD2
225225
isPressed KEYWORD2
226226
systemControl KEYWORD2

hardware/arduino/avr/cores/arduino/HID.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ void Mouse_::move(signed char x, signed char y, signed char wheel)
340340
// http://lists.apple.com/archives/usb/2011/Jun/msg00032.html
341341

342342

343-
void Mouse_::moveAbs(uint16_t x, uint16_t y)
343+
void Mouse_::moveAbsolute(uint16_t x, uint16_t y)
344344
{
345345
u8 m[5];
346346
m[0] = _buttons;

hardware/arduino/avr/cores/arduino/USBAPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class Mouse_
113113
void end(void);
114114
void click(uint8_t b = MOUSE_LEFT);
115115
void move(signed char x, signed char y, signed char wheel = 0);
116-
void moveAbs(uint16_t x, uint16_t y);
116+
void moveAbsolute(uint16_t x, uint16_t y);
117117
void press(uint8_t b = MOUSE_LEFT); // press LEFT by default
118118
void release(uint8_t b = MOUSE_LEFT); // release LEFT by default
119119
bool isPressed(uint8_t b = MOUSE_LEFT); // check LEFT by default

0 commit comments

Comments
 (0)