projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new HID_DESCRIPTOR_MOUSE, HID_DESCRIPTOR_KEYBOARD and HID_DESCRIPTOR_JOYSTICK...
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
Joystick
/
Joystick.c
diff --git
a/Demos/Device/LowLevel/Joystick/Joystick.c
b/Demos/Device/LowLevel/Joystick/Joystick.c
index
de2e283
..
f3185b6
100644
(file)
--- a/
Demos/Device/LowLevel/Joystick/Joystick.c
+++ b/
Demos/Device/LowLevel/Joystick/Joystick.c
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
0
.
+ Copyright (C) Dean Camera, 201
1
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
0
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
1
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-159,7
+159,7
@@
bool GetNextReport(USB_JoystickReport_Data_t* const ReportData)
ReportData->X = 100;
if (JoyStatus_LCL & JOY_PRESS)
ReportData->X = 100;
if (JoyStatus_LCL & JOY_PRESS)
- ReportData->Button
= (1 << 1);
+ ReportData->Button
|
= (1 << 1);
if (ButtonStatus_LCL & BUTTONS_BUTTON1)
ReportData->Button |= (1 << 0);
if (ButtonStatus_LCL & BUTTONS_BUTTON1)
ReportData->Button |= (1 << 0);
@@
-194,7
+194,7
@@
void HID_Task(void)
GetNextReport(&JoystickReportData);
/* Write Joystick Report Data */
GetNextReport(&JoystickReportData);
/* Write Joystick Report Data */
- Endpoint_Write_Stream_LE(&JoystickReportData, sizeof(JoystickReportData));
+ Endpoint_Write_Stream_LE(&JoystickReportData, sizeof(JoystickReportData)
, NULL
);
/* Finalize the stream transfer to send the last packet */
Endpoint_ClearIN();
/* Finalize the stream transfer to send the last packet */
Endpoint_ClearIN();