The function usbh_hid_mouse_getdata retrieves the mouse
data sent by an USB mouse. The argument ctrl is the index of
USB Host Controller. The argument dev_idx is the index of
device instance. The argument btn is a pointer to a data
indicating the mouse buttons pressed. The arguments x and
y are pointers to a data indicating relative location change
of the mouse pointer. The argument wheel is a pointer to the
mouse wheel data indicating the mouse wheel change.
Implementing this function in user code overrides library function
that handles boot protocol device mouse input.
The usbh_hid_mouse_getdata function is part of the
RL-USB Host Class Driver software layer.
Return Value
__TRUE = mouse was used
__FALSE (0) = mouse reported no event (was not
used)
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.