|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
-
-
- #ifndef USBtouchscreen_h_
- #define USBtouchscreen_h_
-
- #include "usb_desc.h"
-
- #if defined(MULTITOUCH_INTERFACE)
-
- #include <inttypes.h>
-
-
- #ifdef __cplusplus
- extern "C" {
- #endif
- void usb_touchscreen_configure(void);
- void usb_touchscreen_press(uint8_t finger, uint32_t x, uint32_t y, uint32_t pressure);
- void usb_touchscreen_release(uint8_t finger);
- void usb_touchscreen_update_callback(void);
- extern volatile uint8_t usb_configuration;
- #ifdef __cplusplus
- }
- #endif
-
-
- #ifdef __cplusplus
- class usb_touchscreen_class
- {
- public:
- void begin(void) { }
- void end(void) { }
- void press(uint8_t finger, uint32_t x, uint32_t y, uint32_t pressure=128) {
- usb_touchscreen_press(finger, x, y, pressure);
- }
- void release(uint8_t finger) {
- usb_touchscreen_release(finger);
- }
- };
- extern usb_touchscreen_class TouchscreenUSB;
-
- #endif
-
- #endif
-
- #endif
-
|