mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	input_common: Set SDL hints to enable DualShock 4 / DualSense motion. (#7121)
This commit is contained in:
		
							parent
							
								
									84f9e9a10f
								
							
						
					
					
						commit
						13d02c14e0
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		|  | @ -835,6 +835,19 @@ SDLState::SDLState() { | |||
| #endif | ||||
| #endif | ||||
| 
 | ||||
|     // Prevent SDL from adding undesired axis
 | ||||
| #ifdef SDL_HINT_ACCELEROMETER_AS_JOYSTICK | ||||
|     SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0"); | ||||
| #endif | ||||
| 
 | ||||
|     // Enable HIDAPI rumble. This prevents SDL from disabling motion on PS4 and PS5 controllers
 | ||||
| #ifdef SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE | ||||
|     SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1"); | ||||
| #endif | ||||
| #ifdef SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE | ||||
|     SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1"); | ||||
| #endif | ||||
| 
 | ||||
|     SDL_AddEventWatch(&SDLEventWatcher, this); | ||||
| 
 | ||||
|     initialized = true; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue