Skip to content

Commit

Permalink
Release 2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
exploitagency committed Sep 5, 2017
1 parent 3ba4e6b commit 51a9c5b
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 52 deletions.
44 changes: 25 additions & 19 deletions source/Arduino_32u4_Code/Arduino_32u4_Code.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
//Prints debug lines via serial if set to 1
//const int debug=0;

String version = "2.1";

//Used later for determining if we are ready to release a key press or a combination of key presses
int keypressdone=0;

Expand Down Expand Up @@ -185,26 +187,30 @@ void loop() {
//mouse click command EX: MouseClickLEFT: MouseClickRIGHT: MouseClickMIDDLE:
//If command equals "MouseClickX:"
else if(cmd == "MouseClickRIGHT") {
String junk = Serial1.readStringUntil('\n');
delay(25);
Mouse.begin();
Mouse.click(MOUSE_RIGHT);
Mouse.end();
}
String junk = Serial1.readStringUntil('\n');
delay(25);
Mouse.begin();
Mouse.click(MOUSE_RIGHT);
Mouse.end();
}
else if(cmd == "MouseClickLEFT") {
String junk = Serial1.readStringUntil('\n');
delay(25);
Mouse.begin();
Mouse.click(MOUSE_LEFT);
Mouse.end();
}
else if(cmd == "MouseClickMIDDLE") {
String junk = Serial1.readStringUntil('\n');
delay(25);
Mouse.begin();
Mouse.click(MOUSE_MIDDLE);
Mouse.end();
}
String junk = Serial1.readStringUntil('\n');
delay(25);
Mouse.begin();
Mouse.click(MOUSE_LEFT);
Mouse.end();
}
else if(cmd == "MouseClickMIDDLE") {
String junk = Serial1.readStringUntil('\n');
delay(25);
Mouse.begin();
Mouse.click(MOUSE_MIDDLE);
Mouse.end();
}
else if(cmd == "GetVersion") {
String junk = Serial1.readStringUntil('\n');
Serial1.println(String()+"Version:"+version);
}

}
}
Loading

0 comments on commit 51a9c5b

Please sign in to comment.