projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix incorrect compiler error message when F_CLOCK is not defined by the user (thanks...
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
Joystick
/
Joystick.c
diff --git
a/Demos/Device/ClassDriver/Joystick/Joystick.c
b/Demos/Device/ClassDriver/Joystick/Joystick.c
index
36a74a2
..
00bcb6f
100644
(file)
--- a/
Demos/Device/ClassDriver/Joystick/Joystick.c
+++ b/
Demos/Device/ClassDriver/Joystick/Joystick.c
@@
-148,10
+148,10
@@
bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn
else if (JoyStatus_LCL & JOY_DOWN)
\r
JoystickReport->Y = 100;
\r
\r
else if (JoyStatus_LCL & JOY_DOWN)
\r
JoystickReport->Y = 100;
\r
\r
- if (JoyStatus_LCL & JOY_RIGHT)
\r
- JoystickReport->X = 100;
\r
- else if (JoyStatus_LCL & JOY_LEFT)
\r
+ if (JoyStatus_LCL & JOY_LEFT)
\r
JoystickReport->X = -100;
\r
JoystickReport->X = -100;
\r
+ else if (JoyStatus_LCL & JOY_RIGHT)
\r
+ JoystickReport->X = 100;
\r
\r
if (JoyStatus_LCL & JOY_PRESS)
\r
JoystickReport->Button = (1 << 1);
\r
\r
if (JoyStatus_LCL & JOY_PRESS)
\r
JoystickReport->Button = (1 << 1);
\r