Removed Window::GetMouseFocusWindow

This commit is contained in:
Laurent Gomila 2011-07-11 23:26:09 +02:00
parent d772d3669a
commit e46016a79d
2 changed files with 0 additions and 28 deletions

View File

@ -427,16 +427,6 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
WindowHandle GetSystemHandle() const; 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 : private :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -38,7 +38,6 @@
namespace namespace
{ {
const sf::Window* fullscreenWindow = NULL; 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() void Window::OnCreate()
{ {
@ -390,16 +382,6 @@ bool Window::FilterEvent(const Event& event)
if (event.Type == Event::Resized) if (event.Type == Event::Resized)
OnResize(); 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; return true;
} }