Skip to content

Commit

Permalink
Add iOS compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
T-vK committed Oct 20, 2020
1 parent 138f67a commit e28c628
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions BleMouse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ static const uint8_t _hidReportDescriptor[] = {
COLLECTION(1), 0x01, // COLLECTION (Application)
USAGE(1), 0x01, // USAGE (Pointer)
COLLECTION(1), 0x00, // COLLECTION (Physical)
REPORT_ID(1), 0x01, // REPORT_ID (1)
// ------------------------------------------------- Buttons (Left, Right, Middle, Back, Forward)
USAGE_PAGE(1), 0x09, // USAGE_PAGE (Button)
USAGE_MINIMUM(1), 0x01, // USAGE_MINIMUM (Button 1)
Expand Down Expand Up @@ -146,7 +145,7 @@ void BleMouse::taskServer(void* pvParameter) {
pServer->setCallbacks(bleMouseInstance->connectionStatus);

bleMouseInstance->hid = new BLEHIDDevice(pServer);
bleMouseInstance->inputMouse = bleMouseInstance->hid->inputReport(1); // <-- input REPORTID from report map
bleMouseInstance->inputMouse = bleMouseInstance->hid->inputReport(0); // <-- input REPORTID from report map
bleMouseInstance->connectionStatus->inputMouse = bleMouseInstance->inputMouse;

bleMouseInstance->hid->manufacturer()->setValue(bleMouseInstance->deviceManufacturer);
Expand Down

0 comments on commit e28c628

Please sign in to comment.