testing mouse mode and swtich

This commit is contained in:
Denis 2023-12-16 23:15:04 +01:00
parent 4bdff1a50d
commit 587fe7ffcf
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
3 changed files with 52 additions and 17 deletions

View file

@ -332,6 +332,10 @@ void *dev_out_thread_func(void *ptr) {
mouse_last_hid_report_sent = now;
virt_mouse_send(&mouse_data, &dev_out_data->dev_stats.mouse, &now);
// reset mouse movements now
dev_out_data->dev_stats.mouse.x = 0;
dev_out_data->dev_stats.mouse.y = 0;
// this does reset the for, ensuring every other device has nothing to say
continue;