1
0
Fork 0

Adafruit Feather BLE / BLE Friend mouse buttons support

This commit is contained in:
Priyadi Iman Nurcahyo 2017-05-29 18:17:21 +07:00
parent 80707d529c
commit f0fc2db4e2
3 changed files with 21 additions and 3 deletions

View file

@ -669,7 +669,7 @@ static void send_mouse(report_mouse_t *report)
if (where == OUTPUT_BLUETOOTH || where == OUTPUT_USB_AND_BT) {
#ifdef MODULE_ADAFRUIT_BLE
// FIXME: mouse buttons
adafruit_ble_send_mouse_move(report->x, report->y, report->v, report->h);
adafruit_ble_send_mouse_move(report->x, report->y, report->v, report->h, report->buttons);
#else
bluefruit_serial_send(0xFD);
bluefruit_serial_send(0x00);