-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Absolute coordinates for HID mouse #3020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
b08dcab
eadaa54
16f3d71
345cb09
16b1c5a
2ad5b84
da96414
5decc56
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,11 +110,15 @@ class Mouse_ | |
Mouse_(void); | ||
void begin(void); | ||
void end(void); | ||
#ifdef MOUSE_ABS_ENABLED | ||
void moveAbs(unsigned int x, unsigned int y, signed char wheel, unsigned char buttons); // x and y have the range of 0 to 4095 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with the Arduino API style guide (http://www.arduino.cc/en/Reference/APIStyleGuide), this should probably be "moveAbsolute()" not "moveAbs()". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or moveTo() as Paul has named it. |
||
#else | ||
void click(uint8_t b = MOUSE_LEFT); | ||
void move(signed char x, signed char y, signed char wheel = 0); | ||
void press(uint8_t b = MOUSE_LEFT); // press LEFT by default | ||
void release(uint8_t b = MOUSE_LEFT); // release LEFT by default | ||
bool isPressed(uint8_t b = MOUSE_LEFT); // check LEFT by default | ||
#endif | ||
}; | ||
extern Mouse_ Mouse; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use sizeof(m) here