12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #include <stdint.h>
- #include "report.h"
- #include "host.h"
- #include "timer.h"
- #include "print.h"
- #include "debug.h"
- #include "pointing_device.h"
- static report_mouse_t mouseReport = {};
- __attribute__((weak)) void pointing_device_init(void) {
-
- }
- __attribute__((weak)) void pointing_device_send(void) {
-
- host_mouse_send(&mouseReport);
-
- mouseReport.x = 0;
- mouseReport.y = 0;
- mouseReport.v = 0;
- mouseReport.h = 0;
- }
- __attribute__((weak)) void pointing_device_task(void) {
-
-
-
-
-
-
-
- pointing_device_send();
- }
- report_mouse_t pointing_device_get_report(void) { return mouseReport; }
- void pointing_device_set_report(report_mouse_t newMouseReport) { mouseReport = newMouseReport; }
|