From 1b63630a5075319313ffe72f7313a74206ca09a7 Mon Sep 17 00:00:00 2001 From: Juan Pedro Fisanotti Date: Mon, 23 Jan 2023 21:15:02 -0300 Subject: [PATCH] Fix bug in helper functions They were all doing right click --- digistump-avr/libraries/DigisparkMouse/DigiMouse.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/digistump-avr/libraries/DigisparkMouse/DigiMouse.h b/digistump-avr/libraries/DigisparkMouse/DigiMouse.h index 497325c..a9eaf6f 100644 --- a/digistump-avr/libraries/DigisparkMouse/DigiMouse.h +++ b/digistump-avr/libraries/DigisparkMouse/DigiMouse.h @@ -4,7 +4,7 @@ * TODO: Make a proper file header. :-) * Modified for Digispark by Digistump * And now modified by Sean Murphy (duckythescientist) from a keyboard device to a mouse device - * Most of the credit for the joystick code should go to Rapha�l Ass�nat + * Most of the credit for the joystick code should go to Raphaël Assénat * And now mouse credit is due to Yiyin Ma and Abby Lin of Cornell */ #ifndef __DigiMouse_h__ @@ -256,11 +256,11 @@ class DigiMouseDevice { } void leftClick(){ - last_built_report[0] = MOUSEBTN_RIGHT_MASK; + last_built_report[0] = MOUSEBTN_LEFT_MASK; } void middleClick(){ - last_built_report[0] = MOUSEBTN_RIGHT_MASK; + last_built_report[0] = MOUSEBTN_MIDDLE_MASK; } void setButtons(unsigned char buttons) {