SWRA715 December 2021 CC2642R , CC2652R
As mentioned previously, the HID inputs are sent through BLE notifications. When the HidEmuKbd_sendKeyboardInput(), HidEmuKbd_sendMouseInput(), and HidEmuKbd_sendConsumerInput() functions are called, they take the hid input, process the input, package the input in a notification format, and then queue up a notification with the payload. In the demo portion of this program, notifications are sent routinely. When the buttons on the LaunchPad are pressed, several notifications are sent. When the mouse demo is started, mouse input notifications will be queued up repeatedly. The mouse repeated notification enqueuing occurs in the HidEmuKbd_mouseTaskFxn() function. A small delay between enqueuing notifications is added to make the mouse movement smoother, but this can be removed, if desired. It is critical that notifications are sent reliably and with minimal latency in order for the HOGP performance to be maximized.