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