BLE_HOGPS_SendBootMouseInputReport
C
uint16_t BLE_HOGPS_SendBootMouseInputReport(uint16_t connHandle, uint8_t buttons, int8_t xAxis, int8_t yAxis);
Description
Sends a HID boot mouse input report.
Note
This function transmits the current state of the mouse buttons along with the X and Y axis movement values.
Parameters
Parameter | Description |
---|---|
[in] connHandle | The connection handle associated with the connection. |
[in] buttons | Mouse button states encoded as bit fields: - Bit 0: Left button - Bit 1: Right button - Bit 2: Middle button |
[in] xAxis | The displacement value along the X-axis since the last report. |
[in] yAxis | The displacement value along the Y-axis since the last report. |
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. |