Removed Window::GetMouseFocusWindow
This commit is contained in:
parent
d772d3669a
commit
e46016a79d
@ -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 :
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user