diff options
Diffstat (limited to 'cores/arduino/HID.cpp')
-rw-r--r-- | cores/arduino/HID.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp index e3aadb5..16d0448 100644 --- a/cores/arduino/HID.cpp +++ b/cores/arduino/HID.cpp @@ -233,6 +233,16 @@ void Mouse_::buttons(uint8_t b) } } +void Mouse_::press(uint8_t b) +{ + buttons(_buttons | b); +} + +void Mouse_::release(uint8_t b) +{ + buttons(_buttons & ~b); +} + //================================================================================ //================================================================================ // Keyboard |