From 302110a055dec534320fb3e088f13ce9d7cbb5bb Mon Sep 17 00:00:00 2001 From: Andrew Mickelson Date: Fri, 31 Jul 2015 22:00:49 -0700 Subject: [PATCH] [OS X] don't try hiding the mouse on OS X, it's not worth the hassle --- src/fe_window.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/fe_window.cpp b/src/fe_window.cpp index 99e29b87a..ca696b2fb 100644 --- a/src/fe_window.cpp +++ b/src/fe_window.cpp @@ -200,6 +200,12 @@ bool FeWindow::run() { int min_run; +#ifndef SFML_SYSTEM_MACOS + // + // Move the mouse to the bottom left corner so it isn't visible + // when the emulator launches. We don't do this on macs due to the + // hot corners. + // sf::Vector2i reset_pos = sf::Mouse::getPosition(); sf::Vector2i hide_pos = getPosition(); @@ -207,6 +213,7 @@ bool FeWindow::run() hide_pos.y += getSize().y - 1; sf::Mouse::setPosition( hide_pos ); +#endif #ifdef SFML_SYSTEM_LINUX // @@ -263,7 +270,9 @@ bool FeWindow::run() sf::sleep( sf::milliseconds( 250 ) ); } +#ifndef SFML_SYSTEM_MACOS sf::Mouse::setPosition( reset_pos ); +#endif return false; }