mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 13:44:50 +00:00 
			
		
		
		
	Mac: Fixed off-by-one bug when plugging in a joystick (thanks, Konstantin!).
This commit is contained in:
		
							parent
							
								
									82c8825cb5
								
							
						
					
					
						commit
						4295a6fe47
					
				| 
						 | 
				
			
			@ -465,6 +465,7 @@ JoystickDeviceWasAddedCallback(void *ctx, IOReturn res, void *sender, IOHIDDevic
 | 
			
		|||
            curdevice = curdevice->pNext;
 | 
			
		||||
        }
 | 
			
		||||
        curdevice->pNext = device;
 | 
			
		||||
        ++device_index;  /* bump by one since we counted by pNext. */
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
/* !!! FIXME: why isn't there an SDL_PrivateJoyDeviceAdded()? */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue