Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in helper functions #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions digistump-avr/libraries/DigisparkMouse/DigiMouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down Expand Up @@ -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) {
Expand Down