mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 10:38:09 +08:00 
			
		
		
		
	Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/792
This commit is contained in:
		| @@ -21,13 +21,9 @@ struct Mouse { | ||||
|   enum Motion { | ||||
|     Released = 0, | ||||
|     Pressed = 1, | ||||
|     Moved = 2, | ||||
|   }; | ||||
|  | ||||
|   // Utility function to check the variations of the mouse state. | ||||
|   bool IsPressed(Button btn = Left) const;   // Released => Pressed. | ||||
|   bool IsHeld(Button btn = Left) const;      // Pressed => Pressed. | ||||
|   bool IsReleased(Button btn = Left) const;  // Pressed => Released. | ||||
|  | ||||
|   // Button | ||||
|   Button button = Button::None; | ||||
|  | ||||
| @@ -42,9 +38,6 @@ struct Mouse { | ||||
|   // Coordinates: | ||||
|   int x = 0; | ||||
|   int y = 0; | ||||
|  | ||||
|   // Previous mouse event, if any. | ||||
|   Mouse* previous = nullptr; | ||||
| }; | ||||
|  | ||||
| }  // namespace ftxui | ||||
|   | ||||
| @@ -117,7 +117,6 @@ class ScreenInteractive : public Screen { | ||||
|   // The style of the cursor to restore on exit. | ||||
|   int cursor_reset_shape_ = 1; | ||||
|  | ||||
|   Mouse latest_mouse_event_; | ||||
|   friend class Loop; | ||||
|  | ||||
|  public: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arthur Sonzogni
					Arthur Sonzogni