Jump to main content

##

# 3.5.4.4 USB_HOST_HID_MOUSE_DATA Structure

## C

    typedef struct {
      USB_HID_BUTTON_STATE buttonState[USB_HOST_HID_MOUSE_BUTTONS_NUMBER];
      USB_HID_BUTTON_ID buttonID[USB_HOST_HID_MOUSE_BUTTONS_NUMBER];
      int16_t xMovement;
      int16_t yMovement;
      int16_t zMovement;
    } USB_HOST_HID_MOUSE_DATA;

## Summary

USB Host HID Mouse Data Object

This structure defines the USB Host HID mouse data object.

## Members

Members | Description
USB_HID_BUTTON_STATE buttonState[USB_HOST_HID_MOUSE_BUTTONS_NUMBER]; | Button state for the buttons. USB_HOST_HID_MOUSE_BUTTONS_NUMBER is system configurable option. The actual number of buttons in the mouse needs to be <= USB_HOST_HID_MOUSE_BUTTONS_NUMBER
int16_t xMovement; | Applicable for 2D Mouse Y - Coordinate displacement
int16_t yMovement; | Applicable for 2D Mouse Z - Coordinate displacement
int16_t zMovement; | Applicable only for 3D Mouse

## Remarks

None.