Działająca myszka

Fork of USBDevice by mbed official

Files at this revision

API Documentation at this revision

Comitter:
widowmaker
Date:
Wed Apr 22 16:33:44 2015 +0000
Parent:
44:d2638fcd76d9
Commit message:
Bo tak

Changed in this revision

USBHID/USBMouse.cpp Show annotated file Show diff for this revision Revisions of this file
USBHID/USBMouse.h Show annotated file Show diff for this revision Revisions of this file
--- a/USBHID/USBMouse.cpp	Tue Mar 24 08:30:19 2015 +0000
+++ b/USBHID/USBMouse.cpp	Wed Apr 22 16:33:44 2015 +0000
@@ -69,7 +69,7 @@
     return send(&report);
 }
 
-bool USBMouse::move(int16_t x, int16_t y) {
+bool USBMouse::move(float x, float y) {
     return update(x, y, button, 0);
 }
 
--- a/USBHID/USBMouse.h	Tue Mar 24 08:30:19 2015 +0000
+++ b/USBHID/USBMouse.h	Wed Apr 22 16:33:44 2015 +0000
@@ -144,7 +144,7 @@
         * @param y-axis position
         * @returns true if there is no error, false otherwise
         */
-        bool move(int16_t x, int16_t y);
+        bool move(float x, float y);
 
         /**
         * Press one or several buttons