Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 19:0dd0fe82c3e7
- Parent:
- 18:d7a681bc22e5
- Child:
- 20:550a57fb9344
--- a/main.cpp Wed Apr 05 02:12:47 2017 +0000
+++ b/main.cpp Wed Apr 05 02:43:57 2017 +0000
@@ -87,9 +87,11 @@
//NOTE: hard coded wait of 0.1
void mouseCommand(char buttons, short x, short y) {
x = mouseMoveMult*x;
- x = x*x;
+ x = x*abs(x);
+ //x = x*sqrt((float)abs(x));
y = mouseMoveMult*y;
- y = y*y;
+ y = y*abs(y);
+ //y = y*sqrt((float)abs(y));
keyOut.putc(0xFD);
keyOut.putc(0x00);

