Adjusts the great pinscape controller to work with a cheap linear potentiometer instead of the expensive CCD array

Dependencies:   USBDevice mbed

Fork of Pinscape_Controller by Mike R

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