digistump / DigistumpArduino

Files to add Digistump support (Digispark, Pro, DigiX) to Arduino 1.6.X (1.6.5+)
955 stars 381 forks source link

DigiMouse.h: leftClick(), rightClick() and middleClick() all do the same thing #63

Open arpruss opened 7 years ago

arpruss commented 7 years ago

In DigistumpArduino/digistump-avr/libraries/DigisparkMouse/DigiMouse.h the definitions of leftClick(), rightClick() and middleClick() are all the same!

mariliahoshino commented 4 years ago

Yes, It's wrong the correct is in line 254 until 264, need change these lines file DigiMouse.h In my laptop the address is C:\Users\USER\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\DigisparkMouse\DigiMouse.h

void rightClick(){
    last_built_report[0] = MOUSEBTN_RIGHT_MASK;
}

void leftClick(){
    last_built_report[0] = MOUSEBTN_LEFT_MASK;  //It's was wrong in here
}

void middleClick(){
    last_built_report[0] = MOUSEBTN_MIDDLE_MASK;    //It's was wrong in here too
mariliahoshino commented 4 years ago

Finished my project Mouse USB wireless via App

https://github.com/mariliahoshino/Mouse_USB

https://www.instagram.com/p/CCg9Zs8J6cR/

pfeerick commented 4 years ago

Looks great! Nice to see new projects showing the Digispark still has a place, even with 'bigger/better' devboards like the ESP8266/NodeMCU! :)