Mouse fix
This commit is contained in:
parent
6a9f70bc2a
commit
a25c2ee026
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue