mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-11-03 17:24:25 +00:00 
			
		
		
		
	Fix SetMousePosition() for SDL (#3580)
This commit is contained in:
		@@ -941,6 +941,8 @@ int SetGamepadMappings(const char *mappings)
 | 
			
		||||
// Set mouse position XY
 | 
			
		||||
void SetMousePosition(int x, int y)
 | 
			
		||||
{
 | 
			
		||||
    SDL_WarpMouseInWindow(platform.window, x, y);
 | 
			
		||||
 | 
			
		||||
    CORE.Input.Mouse.currentPosition = (Vector2){ (float)x, (float)y };
 | 
			
		||||
    CORE.Input.Mouse.previousPosition = CORE.Input.Mouse.currentPosition;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user