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:
		
							parent
							
								
									e625fd6df3
								
							
						
					
					
						commit
						588886878e
					
				
					 13 changed files with 90 additions and 59 deletions
				
			
		| 
						 | 
				
			
			@ -156,10 +156,10 @@ bool GetNextReport(USB_JoystickReport_Data_t* ReportData)
 | 
			
		|||
	else if (JoyStatus_LCL & JOY_DOWN)
 | 
			
		||||
	  ReportData->Y =  100;
 | 
			
		||||
 | 
			
		||||
	if (JoyStatus_LCL & JOY_RIGHT)
 | 
			
		||||
	  ReportData->X =  100;
 | 
			
		||||
	else if (JoyStatus_LCL & JOY_LEFT)
 | 
			
		||||
	if (JoyStatus_LCL & JOY_LEFT)
 | 
			
		||||
	  ReportData->X = -100;
 | 
			
		||||
	else if (JoyStatus_LCL & JOY_RIGHT)
 | 
			
		||||
	  ReportData->X =  100;
 | 
			
		||||
 | 
			
		||||
	if (JoyStatus_LCL & JOY_PRESS)
 | 
			
		||||
	  ReportData->Button  = (1 << 1);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -238,10 +238,10 @@ void CreateMouseReport(USB_MouseReport_Data_t* ReportData)
 | 
			
		|||
	else if (JoyStatus_LCL & JOY_DOWN)
 | 
			
		||||
	  ReportData->Y =  1;
 | 
			
		||||
 | 
			
		||||
	if (JoyStatus_LCL & JOY_RIGHT)
 | 
			
		||||
	  ReportData->X =  1;
 | 
			
		||||
	else if (JoyStatus_LCL & JOY_LEFT)
 | 
			
		||||
	if (JoyStatus_LCL & JOY_LEFT)
 | 
			
		||||
	  ReportData->X = -1;
 | 
			
		||||
	else if (JoyStatus_LCL & JOY_RIGHT)
 | 
			
		||||
	  ReportData->X = 1;
 | 
			
		||||
 | 
			
		||||
	if (JoyStatus_LCL & JOY_PRESS)
 | 
			
		||||
	  ReportData->Button  = (1 << 0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue