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

ParameterDescription
[in] connHandleThe connection handle associated with the connection.
[in] buttonsA bitmask representing the state of each button (bit 0 for button 1, bit 1 for button 2, etc.).
[in] wheelThe vertical scroll amount, where positive values indicate upward scrolling. Range: -127 to 127.
[in] acPanThe horizontal scroll amount, where positive values indicate rightward scrolling. Range: -127 to 127.

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.