Bladeren bron

Expose mouse position manipulation api in Input class

Rokas Kupstys 9 jaren geleden
bovenliggende
commit
19012714e1
1 gewijzigde bestanden met toevoegingen van 5 en 4 verwijderingen
  1. 5 4
      Source/Urho3D/Input/Input.h

+ 5 - 4
Source/Urho3D/Input/Input.h

@@ -297,6 +297,11 @@ public:
     /// Return whether application window is minimized.
     bool IsMinimized() const;
 
+    /// Set the mouse cursor position.
+    void SetMousePosition(const IntVector2& position);
+    /// Center the mouse position.
+    void CenterMousePosition();
+
 private:
     /// Initialize when screen mode initially set.
     void Initialize();
@@ -328,10 +333,6 @@ private:
     void SetKey(int key, int scancode, bool newState);
     /// Handle mouse wheel change.
     void SetMouseWheel(int delta);
-    /// Internal function to set the mouse cursor position.
-    void SetMousePosition(const IntVector2& position);
-    /// Center the mouse position.
-    void CenterMousePosition();
     /// Suppress next mouse movement.
     void SuppressNextMouseMove();
     /// Unsuppress mouse movement.