diff --git a/right/usb_composite_device.h b/right/usb_composite_device.h index f082a3b..1e74c4c 100644 --- a/right/usb_composite_device.h +++ b/right/usb_composite_device.h @@ -12,7 +12,7 @@ // Typedefs: - typedef struct _usb_device_composite_struct { + typedef struct { usb_device_handle deviceHandle; class_handle_t mouseHandle; class_handle_t keyboardHandle; diff --git a/right/usb_interface_keyboard.h b/right/usb_interface_keyboard.h index abd1f0a..4ecfa15 100644 --- a/right/usb_interface_keyboard.h +++ b/right/usb_interface_keyboard.h @@ -31,13 +31,14 @@ // Typedefs: - typedef struct usb_keyboard_report { + typedef struct { uint8_t modifiers; uint8_t reserved; // Always must be 0 uint8_t scancodes[USB_KEYBOARD_MAX_KEYS]; } __attribute__ ((packed)) usb_keyboard_report_t; // Variables: + extern usb_device_class_struct_t UsbKeyboardClass; // Functions: diff --git a/right/usb_interface_mouse.h b/right/usb_interface_mouse.h index b346f6e..b706f2e 100644 --- a/right/usb_interface_mouse.h +++ b/right/usb_interface_mouse.h @@ -30,7 +30,7 @@ // Typedefs: - typedef struct usb_mouse_report { + typedef struct { uint8_t buttons; int16_t x; int16_t y;