Ghost Mouse / Mbed 2 deprecated ghost_mouse

Dependencies:   mbed

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);