BLE_HOGPS_SetMouseMotionInputReport

C

uint16_t BLE_HOGPS_SetMouseMotionInputReport(int16_t xAxis, int16_t yAxis);

Description

Sets the HID mouse motion input report.

Note

This function prepares the input report for mouse motion in the HID profile. It specifies the relative movement of the mouse along the X and Y axes.

Parameters

ParameterDescription
[in] xAxisThe relative movement on the X-Axis with a valid range from -2047 to 2047.
[in] yAxisThe relative movement on the Y-Axis with a valid range from -2047 to 2047.

Return values

Return valueDescription
MBA_RES_SUCCESSThe input report was successfully set.
MBA_RES_INVALID_PARAThe input parameters are invalid.