Codechange: remove queue_wrap / last_position from mouse movement
No backend uses it anymore, so also no longer any need to support it.
This commit is contained in:
		 Patric Stout
					Patric Stout
				
			
				
					committed by
					
						 Patric Stout
						Patric Stout
					
				
			
			
				
	
			
			
			 Patric Stout
						Patric Stout
					
				
			
						parent
						
							e83f244750
						
					
				
				
					commit
					0d840b4570
				
			| @@ -391,7 +391,7 @@ bool VideoDriver_Allegro::PollEvent() | ||||
| 	} | ||||
|  | ||||
| 	/* Mouse movement */ | ||||
| 	if (_cursor.UpdateCursorPosition(mouse_x, mouse_y, false)) { | ||||
| 	if (_cursor.UpdateCursorPosition(mouse_x, mouse_y)) { | ||||
| 		position_mouse(_cursor.pos.x, _cursor.pos.y); | ||||
| 	} | ||||
| 	if (_cursor.delta.x != 0 || _cursor.delta.y) mouse_action = true; | ||||
|   | ||||
| @@ -658,7 +658,7 @@ void CocoaDialog(const char *title, const char *message, const char *buttonLabel | ||||
| 		_cursor.UpdateCursorPositionRelative(event.deltaX * self.getContentsScale, event.deltaY * self.getContentsScale); | ||||
| 	} else { | ||||
| 		NSPoint pt = [ self mousePositionFromEvent:event ]; | ||||
| 		_cursor.UpdateCursorPosition(pt.x, pt.y, false); | ||||
| 		_cursor.UpdateCursorPosition(pt.x, pt.y); | ||||
| 	} | ||||
|  | ||||
| 	HandleMouseEvents(); | ||||
|   | ||||
| @@ -384,7 +384,7 @@ bool VideoDriver_SDL_Base::PollEvent() | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
| 			if (_cursor.UpdateCursorPosition(x, y, false)) { | ||||
| 			if (_cursor.UpdateCursorPosition(x, y)) { | ||||
| 				SDL_WarpMouseInWindow(this->sdl_window, _cursor.pos.x, _cursor.pos.y); | ||||
| 			} | ||||
| 			HandleMouseEvents(); | ||||
|   | ||||
| @@ -491,7 +491,7 @@ bool VideoDriver_SDL::PollEvent() | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
| 			if (_cursor.UpdateCursorPosition(x, y, false)) { | ||||
| 			if (_cursor.UpdateCursorPosition(x, y)) { | ||||
| 				SDL_WarpMouse(_cursor.pos.x, _cursor.pos.y); | ||||
| 			} | ||||
| 			HandleMouseEvents(); | ||||
|   | ||||
| @@ -490,7 +490,7 @@ LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
| 			if (_cursor.UpdateCursorPosition(x, y, false)) { | ||||
| 			if (_cursor.UpdateCursorPosition(x, y)) { | ||||
| 				POINT pt; | ||||
| 				pt.x = _cursor.pos.x; | ||||
| 				pt.y = _cursor.pos.y; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user