Open arpruss opened 7 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
Finished my project Mouse USB wireless via App
Looks great! Nice to see new projects showing the Digispark still has a place, even with 'bigger/better' devboards like the ESP8266/NodeMCU! :)
In DigistumpArduino/digistump-avr/libraries/DigisparkMouse/DigiMouse.h the definitions of leftClick(), rightClick() and middleClick() are all the same!