浏览代码

Expose mouse position manipulation api in Input class

Rokas Kupstys 9 年之前
父节点
当前提交
19012714e1
共有 1 个文件被更改,包括 5 次插入4 次删除
  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.
     /// Return whether application window is minimized.
     bool IsMinimized() const;
     bool IsMinimized() const;
 
 
+    /// Set the mouse cursor position.
+    void SetMousePosition(const IntVector2& position);
+    /// Center the mouse position.
+    void CenterMousePosition();
+
 private:
 private:
     /// Initialize when screen mode initially set.
     /// Initialize when screen mode initially set.
     void Initialize();
     void Initialize();
@@ -328,10 +333,6 @@ private:
     void SetKey(int key, int scancode, bool newState);
     void SetKey(int key, int scancode, bool newState);
     /// Handle mouse wheel change.
     /// Handle mouse wheel change.
     void SetMouseWheel(int delta);
     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.
     /// Suppress next mouse movement.
     void SuppressNextMouseMove();
     void SuppressNextMouseMove();
     /// Unsuppress mouse movement.
     /// Unsuppress mouse movement.