aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/ClassDriver/MouseHost/MouseHost.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-09-21 10:49:06 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-09-21 10:49:06 +0000
commit3ffa7543a05761a0c69144c9b66196b08d8f1249 (patch)
tree194ed0ef1c4c2f82b84100a8eb95128fce4014af /Demos/Host/ClassDriver/MouseHost/MouseHost.c
parentf5c645296c837c85ff915a615cf1fd3193b91d7d (diff)
downloadlufa-3ffa7543a05761a0c69144c9b66196b08d8f1249.tar.gz
lufa-3ffa7543a05761a0c69144c9b66196b08d8f1249.tar.bz2
lufa-3ffa7543a05761a0c69144c9b66196b08d8f1249.zip
Finish initial draft of the Host Mode HID Class driver.
Add new MouseHostWithParser and KeyboardHostWithParser Host Class driver demos.
Diffstat (limited to 'Demos/Host/ClassDriver/MouseHost/MouseHost.c')
-rw-r--r--Demos/Host/ClassDriver/MouseHost/MouseHost.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Demos/Host/ClassDriver/MouseHost/MouseHost.c b/Demos/Host/ClassDriver/MouseHost/MouseHost.c
index 9b84642bc..7434e7c6e 100644
--- a/Demos/Host/ClassDriver/MouseHost/MouseHost.c
+++ b/Demos/Host/ClassDriver/MouseHost/MouseHost.c
@@ -113,18 +113,14 @@ int main(void)
case HOST_STATE_Configured:
if (HID_Host_IsReportReceived(&Mouse_HID_Interface))
{
- USB_MouseReport_Data_t MouseReport;
- uint8_t ReportID = 0;
uint8_t LEDMask = LEDS_NO_LEDS;
- /* Receive next boot protocol mouse report from the device */
- HID_Host_ReceiveReport(&Mouse_HID_Interface, false, &ReportID, &MouseReport);
+ USB_MouseReport_Data_t MouseReport;
+ HID_Host_ReceiveReport(&Mouse_HID_Interface, &MouseReport);
- /* Print mouse report data through the serial port */
printf_P(PSTR("dX:%2d dY:%2d Button:%d\r\n"), MouseReport.X,
MouseReport.Y,
MouseReport.Button);
-
if (MouseReport.X > 0)
LEDMask |= LEDS_LED1;
else if (MouseReport.X < 0)