@@ -225,6 +225,16 @@ bool BLEHidAdafruit::mouseButtonRelease(uint16_t conn_hdl)
225225 return mouseReport (conn_hdl, 0 , 0 , 0 , 0 , 0 );
226226}
227227
228+ bool BLEHidAdafruit::mouseButtonPressSpecific (uint16_t conn_hdl, uint8_t buttons)
229+ {
230+ return mouseReport (conn_hdl, _mse_buttons | buttons, 0 , 0 , 0 , 0 );
231+ }
232+
233+ bool BLEHidAdafruit::mouseButtonReleaseSpecific (uint16_t conn_hdl, uint8_t buttons)
234+ {
235+ return mouseReport (conn_hdl, _mse_buttons & ~buttons, 0 , 0 , 0 , 0 );
236+ }
237+
228238bool BLEHidAdafruit::mouseMove (uint16_t conn_hdl, int8_t x, int8_t y)
229239{
230240 return mouseReport (conn_hdl, _mse_buttons, x, y, 0 , 0 );
@@ -307,6 +317,16 @@ bool BLEHidAdafruit::mouseButtonRelease(void)
307317 return mouseButtonRelease (BLE_CONN_HANDLE_INVALID);
308318}
309319
320+ bool BLEHidAdafruit::mouseButtonPressSpecific (uint8_t buttons)
321+ {
322+ return mouseButtonPressSpecific (BLE_CONN_HANDLE_INVALID, buttons);
323+ }
324+
325+ bool BLEHidAdafruit::mouseButtonReleaseSpecific (uint8_t buttons)
326+ {
327+ return mouseButtonReleaseSpecific (BLE_CONN_HANDLE_INVALID, buttons);
328+ }
329+
310330bool BLEHidAdafruit::mouseMove (int8_t x, int8_t y)
311331{
312332 return mouseMove (BLE_CONN_HANDLE_INVALID, x, y);
0 commit comments