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: FastAnalogIn FastIO USBDevice mbed FastPWM SimpleDMA
Fork of Pinscape_Controller by
Diff: USBJoystick/USBJoystick.h
- Revision:
- 9:fd65b0a94720
- Parent:
- 6:cc35eb643e8f
- Child:
- 10:976666ffa4ef
--- a/USBJoystick/USBJoystick.h Fri Aug 08 20:59:39 2014 +0000
+++ b/USBJoystick/USBJoystick.h Mon Aug 18 21:46:10 2014 +0000
@@ -106,7 +106,7 @@
* @param buttons buttons state, as a bit mask (combination with '|' of JOY_Bn values)
* @returns true if there is no error, false otherwise
*/
- bool update(int16_t x, int16_t y, int16_t z, int16_t rx, int16_t ry, uint16_t buttons);
+ bool update(int16_t x, int16_t y, int16_t z, uint16_t buttons, uint16_t status);
/**
* Write a state of the mouse
@@ -114,7 +114,7 @@
* @returns true if there is no error, false otherwise
*/
bool update();
-
+
/**
* Move the cursor to (x, y)
*
@@ -155,9 +155,8 @@
int16_t _x;
int16_t _y;
int16_t _z;
- int16_t _rx;
- int16_t _ry;
uint16_t _buttons;
+ uint8_t _status;
void _init();
};
