فهرست منبع

Fix mouse position update

Daniele Bartolini 11 سال پیش
والد
کامیت
91adb953d7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      engine/input/mouse.h

+ 1 - 1
engine/input/mouse.h

@@ -157,13 +157,13 @@ struct Mouse
 	void set_button_state(uint16_t x, uint16_t y, MouseButton::Enum b, bool state)
 	void set_button_state(uint16_t x, uint16_t y, MouseButton::Enum b, bool state)
 	{
 	{
 		set_position(x, y);
 		set_position(x, y);
-
 		_last_button = b;
 		_last_button = b;
 		_current_state[b] = state;
 		_current_state[b] = state;
 	}
 	}
 
 
 	void set_wheel(uint16_t x, uint16_t y, float wheel)
 	void set_wheel(uint16_t x, uint16_t y, float wheel)
 	{
 	{
+		set_position(x, y);
 		_wheel = wheel;
 		_wheel = wheel;
 	}
 	}