BLE_HOGPS_SendMouseButtonInputReport
C
uint16_t BLE_HOGPS_SendMouseButtonInputReport(uint16_t connHandle, uint8_t buttons, int8_t wheel, int8_t acPan);
Description
Sends a HID mouse button input report.
Note
This function transmits a report indicating the state of mouse buttons, the scroll wheel, and the AC pan.
Parameters
Parameter | Description |
---|---|
[in] connHandle | The connection handle associated with the connection. |
[in] buttons | A bitmask representing the state of each button (bit 0 for button 1, bit 1 for button 2, etc.). |
[in] wheel | The vertical scroll amount, where positive values indicate upward scrolling. Range: -127 to 127. |
[in] acPan | The horizontal scroll amount, where positive values indicate rightward scrolling. Range: -127 to 127. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | The input report was sent successfully. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | The parameters provided are invalid. |