diff options
Diffstat (limited to 'cores/arduino/HID.cpp')
-rw-r--r-- | cores/arduino/HID.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp index 16d0448..8ed1566 100644 --- a/cores/arduino/HID.cpp +++ b/cores/arduino/HID.cpp @@ -243,6 +243,13 @@ void Mouse_::release(uint8_t b) buttons(_buttons & ~b); } +bool Mouse_::isPressed(uint8_t b) +{ + if (b & _buttons > 0) + return true; + return false; +} + //================================================================================ //================================================================================ // Keyboard |