Corrections, improvements and additions to the incomplete RNDISHost demo.

Change device demos which use the joystick to use the natural UP, DOWN, LEFT, RIGHT ordering in all demos when checking the joystick's position.
This commit is contained in:
Dean Camera 2009-11-13 13:24:04 +00:00
parent e625fd6df3
commit 588886878e
13 changed files with 90 additions and 59 deletions

View file

@ -148,10 +148,10 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn
else if (JoyStatus_LCL & JOY_DOWN)
JoystickReport->Y = 100;
if (JoyStatus_LCL & JOY_RIGHT)
JoystickReport->X = 100;
else if (JoyStatus_LCL & JOY_LEFT)
if (JoyStatus_LCL & JOY_LEFT)
JoystickReport->X = -100;
else if (JoyStatus_LCL & JOY_RIGHT)
JoystickReport->X = 100;
if (JoyStatus_LCL & JOY_PRESS)
JoystickReport->Button = (1 << 1);