mirror of
				https://github.com/encounter/SDL.git
				synced 2025-10-27 12:10:24 +00:00 
			
		
		
		
	Patched to compile on non-C99 Microsoft compiler.
This commit is contained in:
		
							parent
							
								
									a614f18666
								
							
						
					
					
						commit
						c521ae84bc
					
				| @ -1564,9 +1564,8 @@ SDL_RunXInputHaptic(void *arg) | |||||||
|         SDL_Delay(50); |         SDL_Delay(50); | ||||||
|         SDL_LockMutex(hwdata->mutex); |         SDL_LockMutex(hwdata->mutex); | ||||||
|         /* If we're currently running and need to stop... */ |         /* If we're currently running and need to stop... */ | ||||||
|         const Uint32 stopTicks = hwdata->stopTicks; |         if (hwdata->stopTicks) { | ||||||
|         if (stopTicks) { |             if ((hwdata->stopTicks != SDL_HAPTIC_INFINITY) && (hwdata->stopTicks < SDL_GetTicks())) { | ||||||
|             if ((stopTicks != SDL_HAPTIC_INFINITY) && (stopTicks < SDL_GetTicks())) { |  | ||||||
|                 XINPUT_VIBRATION vibration = { 0, 0 }; |                 XINPUT_VIBRATION vibration = { 0, 0 }; | ||||||
|                 hwdata->stopTicks = 0; |                 hwdata->stopTicks = 0; | ||||||
|                 XINPUTSETSTATE(hwdata->userid, &vibration); |                 XINPUTSETSTATE(hwdata->userid, &vibration); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user