Disable accelerometer joystick emulation on Android
This commit is contained in:
		
							parent
							
								
									f1da585f33
								
							
						
					
					
						commit
						012d87d05a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -246,7 +246,8 @@ int main(int argc, char *argv[])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	SDL_Surface *iconImg = IMG_Load_RW(iconSrc, SDL_TRUE);
 | 
						SDL_Surface *iconImg = IMG_Load_RW(iconSrc, SDL_TRUE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	SDL_SetHint("SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS", "0");
 | 
						SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
 | 
				
			||||||
 | 
						SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	SDL_Window *win;
 | 
						SDL_Window *win;
 | 
				
			||||||
	Uint32 winFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_INPUT_FOCUS;
 | 
						Uint32 winFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_INPUT_FOCUS;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue