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

ParameterDescription
[in] connHandleThe connection handle associated with the connection.
[in] buttonsMouse button states encoded as bit fields: - Bit 0: Left button - Bit 1: Right button - Bit 2: Middle button
[in] xAxisThe displacement value along the X-axis since the last report.
[in] yAxisThe displacement value along the Y-axis since the last report.

Return values

Return valueDescription
MBA_RES_SUCCESSThe input report was sent successfully.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAThe parameters provided are invalid.