mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 07:44:48 +00:00 
			
		
		
		
	Return a correlation error when trigger rumble is attempted without correlation
This commit is contained in:
		
							parent
							
								
									0288de8529
								
							
						
					
					
						commit
						d9b5805ba5
					
				| 
						 | 
				
			
			@ -1322,8 +1322,10 @@ RAWINPUT_JoystickRumbleTriggers(SDL_Joystick *joystick, Uint16 left_rumble, Uint
 | 
			
		|||
        if (!SUCCEEDED(hr)) {
 | 
			
		||||
            return SDL_SetError("Setting vibration failed: 0x%lx\n", hr);
 | 
			
		||||
        }
 | 
			
		||||
        return 0:
 | 
			
		||||
    } else {
 | 
			
		||||
        return SDL_SetError("Controller isn't correlated yet, try hitting a button first");
 | 
			
		||||
    }
 | 
			
		||||
    return 0;
 | 
			
		||||
#else
 | 
			
		||||
    return SDL_Unsupported();
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue