File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ MouseToClass::MouseToClass() {
11
11
}
12
12
13
13
14
- void MouseToClass::setTarget (int targetXinput, int targetYinput, const boolean homeFirst) {
14
+ void MouseToClass::setTarget (const int targetXinput, const int targetYinput, const boolean homeFirst) {
15
15
// convert screen coordinates to Arduino coordinates
16
16
targetX = targetXinput * correctionFactor;
17
17
targetY = targetYinput * correctionFactor;
@@ -30,7 +30,7 @@ int MouseToClass::getTargetY() {
30
30
31
31
32
32
// used for compatibility with the previous API
33
- boolean MouseToClass::moveTo (int targetXinput, int targetYinput) {
33
+ boolean MouseToClass::moveTo (const int targetXinput, const int targetYinput) {
34
34
setTarget (targetXinput, targetYinput);
35
35
return move ();
36
36
}
Original file line number Diff line number Diff line change 10
10
class MouseToClass {
11
11
public:
12
12
MouseToClass ();
13
- void setTarget (int targetXinput, int targetYinput, const boolean homeFirst = true );
13
+ void setTarget (const int targetXinput, const int targetYinput, const boolean homeFirst = true );
14
14
int getTargetX ();
15
15
int getTargetY ();
16
- boolean moveTo (int targetXinput, int targetYinput);
16
+ boolean moveTo (const int targetXinput, const int targetYinput);
17
17
boolean move ();
18
18
void setScreenResolution (const int x, const int y);
19
19
unsigned int getScreenResolutionX ();
You can’t perform that action at this time.
0 commit comments