Wixel SDK
Data Fields
HID_MOUSE_IN_REPORT Struct Reference

#include <usb_hid.h>

Data Fields

uint8 buttons
 
int8 x
 
int8 y
 
int8 wheel
 

Detailed Description

This struct contains the output data sent in HID reports from the host to the keyboard interface.

Definition at line 77 of file usb_hid.h.

Field Documentation

uint8 buttons

Mouse button data: Each bit contains the state of one button (1 = pressed, 0 = not pressed), with the lowest bit representing Button 1 (usage ID 0x01) and the highest bit representing Button 8 (usage ID 0x08). Buttons 1, 2, and 3 usually correspond to the left, right, and middle buttons on a mouse, respectively. See usb_hid_constants.h for the meaning of each bit. The mouse's HID Report Descriptor is defined as mouseReportDescriptor in usb_hid.c.

Definition at line 86 of file usb_hid.h.

int8 wheel

Mouse wheel data: This byte contains an 8-bit signed value that represents a change (relative offset) in the position of the mouse wheel.

Definition at line 98 of file usb_hid.h.

int8 x

Mouse X axis data: This byte contains an 8-bit signed value that represents a change (relative offset) in the horizontal position of the mouse cursor.

Definition at line 90 of file usb_hid.h.

int8 y

Mouse Y axis data: This byte contains an 8-bit signed value that represents a change (relative offset) in the vertical position of the mouse cursor.

Definition at line 94 of file usb_hid.h.


The documentation for this struct was generated from the following file: