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 aeae455 commit 4205f04Copy full SHA for 4205f04
plugins/KeyboardioHID/Readme.md
@@ -111,6 +111,7 @@ Version History
111
* Consumer Key fix (issue #3)
112
* Gamepad fix (issue #14)
113
* Added Keycode example
114
+* Mouse press + release fix
115
116
2.1 Release (28.01.2015)
117
* 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