From a5b9ca4485732dd3752cc8d5b10fe82b77fc42ce Mon Sep 17 00:00:00 2001 From: Danilo Date: Thu, 1 Aug 2024 11:02:15 -0300 Subject: [PATCH] =?UTF-8?q?Adiciona=20coment=C3=A1rio=20em=20Mouse::SetPos?= =?UTF-8?q?ition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/platform-dx/mouse.cpp | 3 +-- inc/xna/input/mouse.hpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/platform-dx/mouse.cpp b/framework/platform-dx/mouse.cpp index 17c4f10..d3f4171 100644 --- a/framework/platform-dx/mouse.cpp +++ b/framework/platform-dx/mouse.cpp @@ -28,8 +28,7 @@ namespace xna { impl->_dxMouse->SetWindow(hwnd); } - - //Sets the position of the mouse cursor relative to the upper - left corner of the window. + void Mouse::SetPosition(Int x, Int y) { SetCursorPos(x, y); } diff --git a/inc/xna/input/mouse.hpp b/inc/xna/input/mouse.hpp index 4a9ea53..41a55dc 100644 --- a/inc/xna/input/mouse.hpp +++ b/inc/xna/input/mouse.hpp @@ -40,6 +40,7 @@ namespace xna { //Mouse coordinates returned by GetState are relative to the upper-left corner of this window. static void WindowHandle(intptr_t value); + //Sets the position of the mouse cursor relative to the upper-left corner of the window. static void SetPosition(Int x, Int y); private: