We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfc20c9 commit 2c5317fCopy full SHA for 2c5317f
plugins/KeyboardioHID/Readme.md
@@ -75,6 +75,7 @@ Version History
75
* Consumer Key fix (issue #3)
76
* Gamepad fix (issue #14)
77
* Added Keycode example
78
+* Mouse press + release fix
79
80
2.1 Release (28.01.2015)
81
* Reworked the whole USB-Core from scratch
plugins/KeyboardioHID/avr/cores/hid/USB-Core/Mouse.h
@@ -87,7 +87,12 @@ class Mouse_
87
{
88
private:
89
uint8_t _buttons;
90
- void buttons(uint8_t b);
+ inline void buttons(uint8_t b){
91
+ if (b != _buttons){
92
+ _buttons = b;
93
+ move(0, 0, 0);
94
+ }
95
96
public:
97
inline Mouse_(void) {
98
// removed this to avoid creating an instance of Mouse if not needed
0 commit comments