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.
2 parents 3e1fac7 + 2c5317f commit b818ca5Copy full SHA for b818ca5
plugins/KeyboardioHID/Readme.md
@@ -77,6 +77,7 @@ Version History
77
* Consumer Key fix (issue #3)
78
* Gamepad fix (issue #14)
79
* Added Keycode example
80
+* Mouse press + release fix
81
82
2.1 Release (28.01.2015)
83
* 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