Removed Window::GetMouseFocusWindow
This commit is contained in:
parent
d772d3669a
commit
e46016a79d
2 changed files with 0 additions and 28 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue