From adea44b5c377ab7db6cacdb6782ef0364e553951 Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 2 Apr 2015 15:12:58 +0200 Subject: [PATCH 1/3] Update Readme.md --- Readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Readme.md b/Readme.md index 8dabf84..e557e11 100644 --- a/Readme.md +++ b/Readme.md @@ -12,6 +12,8 @@ The idea is to enable enhanced USB functions to almost all 'standard' Arduino bo Download ======== +###Download the current dev version for 1.6.2 compatibility. The master currently only works with 1.6.1 and the dev only with 1.6.2 due to internal IDE changes. + You have 3 versions you can download: * The master includes all fixes to the current stable release. Download it by clicking download at the right. Use the [online Wiki](https://github.com/NicoHood/HID/wiki) to get the newest documentation. From 6a9f70bc2aac6ad07b93745ca7d545347d90bc21 Mon Sep 17 00:00:00 2001 From: Nico Date: Sun, 12 Apr 2015 12:54:57 +0200 Subject: [PATCH 2/3] removed 1.6.2 note --- Readme.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/Readme.md b/Readme.md index f5ffc09..86b5a6a 100644 --- a/Readme.md +++ b/Readme.md @@ -14,8 +14,6 @@ See the [wiki](https://github.com/NicoHood/HID/wiki/Features) for more informati Download ======== -###Download the current dev version for 1.6.2 compatibility. The master currently only works with 1.6.1 and the dev only with 1.6.2 due to internal IDE changes. - You have 3 versions you can download: * The master includes all fixes to the current stable release. Download it by clicking download at the right. Use the [online Wiki](https://github.com/NicoHood/HID/wiki) to get the newest documentation. From a25c2ee026ebed79a79a333d1ee28c9445a555c0 Mon Sep 17 00:00:00 2001 From: Nico Date: Sun, 19 Apr 2015 18:30:05 +0200 Subject: [PATCH 3/3] Mouse fix --- Readme.md | 1 + avr/cores/hid/USB-Core/Mouse.h | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 86b5a6a..213f186 100644 --- a/Readme.md +++ b/Readme.md @@ -75,6 +75,7 @@ Version History * Consumer Key fix (issue #3) * Gamepad fix (issue #14) * Added Keycode example +* Mouse press + release fix 2.1 Release (28.01.2015) * Reworked the whole USB-Core from scratch diff --git a/avr/cores/hid/USB-Core/Mouse.h b/avr/cores/hid/USB-Core/Mouse.h index fa5b255..0ec0a1b 100644 --- a/avr/cores/hid/USB-Core/Mouse.h +++ b/avr/cores/hid/USB-Core/Mouse.h @@ -87,7 +87,12 @@ class Mouse_ { private: uint8_t _buttons; - void buttons(uint8_t b); + inline void buttons(uint8_t b){ + if (b != _buttons){ + _buttons = b; + move(0, 0, 0); + } + } public: inline Mouse_(void) { // removed this to avoid creating an instance of Mouse if not needed