From e46016a79d8f6c2f4caf807bd726095b119fe9d0 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Mon, 11 Jul 2011 23:26:09 +0200 Subject: [PATCH] Removed Window::GetMouseFocusWindow --- include/SFML/Window/Window.hpp | 10 ---------- src/SFML/Window/Window.cpp | 18 ------------------ 2 files changed, 28 deletions(-) diff --git a/include/SFML/Window/Window.hpp b/include/SFML/Window/Window.hpp index 52e27ee3..060f8ea9 100644 --- a/include/SFML/Window/Window.hpp +++ b/include/SFML/Window/Window.hpp @@ -427,16 +427,6 @@ public : //////////////////////////////////////////////////////////// WindowHandle GetSystemHandle() const; - //////////////////////////////////////////////////////////// - /// \brief Get the window which is under the mouse cursor - /// - /// This function is for internal use. - /// - /// \return Pointer to the mouse focus window (NULL if not) - /// - //////////////////////////////////////////////////////////// - static const Window* GetMouseFocusWindow(); - private : //////////////////////////////////////////////////////////// diff --git a/src/SFML/Window/Window.cpp b/src/SFML/Window/Window.cpp index b2ebfc05..ac047f9c 100644 --- a/src/SFML/Window/Window.cpp +++ b/src/SFML/Window/Window.cpp @@ -38,7 +38,6 @@ namespace { const sf::Window* fullscreenWindow = NULL; - const sf::Window* mouseFocusWindow = NULL; } @@ -362,13 +361,6 @@ WindowHandle Window::GetSystemHandle() const } -//////////////////////////////////////////////////////////// -const Window* Window::GetMouseFocusWindow() -{ - return mouseFocusWindow; -} - - //////////////////////////////////////////////////////////// void Window::OnCreate() { @@ -390,16 +382,6 @@ bool Window::FilterEvent(const Event& event) if (event.Type == Event::Resized) OnResize(); - // Watch mouse move/left events to track the window which is under the cursor - if (event.Type == Event::MouseMoved) - { - mouseFocusWindow = this; - } - else if ((event.Type == Event::MouseLeft) && (mouseFocusWindow == this)) - { - mouseFocusWindow = NULL; - } - return true; }