projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Corrections, improvements and additions to the incomplete RNDISHost demo.
[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
6d04c8f
..
aa5244c
100644
(file)
--- a/
Demos/Device/LowLevel/Joystick/Joystick.c
+++ b/
Demos/Device/LowLevel/Joystick/Joystick.c
@@
-156,10
+156,10
@@
bool GetNextReport(USB_JoystickReport_Data_t* ReportData)
else if (JoyStatus_LCL & JOY_DOWN)
\r
ReportData->Y = 100;
\r
\r
else if (JoyStatus_LCL & JOY_DOWN)
\r
ReportData->Y = 100;
\r
\r
- if (JoyStatus_LCL & JOY_RIGHT)
\r
- ReportData->X = 100;
\r
- else if (JoyStatus_LCL & JOY_LEFT)
\r
+ if (JoyStatus_LCL & JOY_LEFT)
\r
ReportData->X = -100;
\r
ReportData->X = -100;
\r
+ else if (JoyStatus_LCL & JOY_RIGHT)
\r
+ ReportData->X = 100;
\r
\r
if (JoyStatus_LCL & JOY_PRESS)
\r
ReportData->Button = (1 << 1);
\r
\r
if (JoyStatus_LCL & JOY_PRESS)
\r
ReportData->Button = (1 << 1);
\r