summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2011-10-10 07:56:14 +0000
committer Olivier Galibert <galibert@pobox.com>2011-10-10 07:56:14 +0000
commit07519ce890c4c09c47862df714c64605e1237b02 (patch)
tree715f2d871405d590be80e25d3d8528034c12fb4f
parenta8176538f220dbcc6f9ceac87edf48c84f5f5e59 (diff)
Windows only - for evaluation - changed when mouse pointer goes off. Pointer will always be on in windowed mode. In full-screen, it will obey the -mouse / -nomouse option. This means that you will always have a mouse pointer in mouse-enabled artwork (such as chess), since these must always be run in windowed mode.
-rw-r--r--src/osd/windows/window.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/osd/windows/window.c b/src/osd/windows/window.c
index 2fbacb8b780..4f06663c5bf 100644
--- a/src/osd/windows/window.c
+++ b/src/osd/windows/window.c
@@ -601,13 +601,10 @@ void winwindow_update_cursor_state(running_machine &machine)
assert(GetCurrentThreadId() == main_threadid);
- // if we should hide the mouse, then do it
- // rules are:
- // 1. we must have focus before hiding the cursor
- // 2. we also hide the cursor in full screen mode and when the window doesn't have a menu
- // 3. we also hide the cursor in windowed mode if we're not paused and
- // the input system requests it
- if (winwindow_has_focus() && ((!video_config.windowed && !win_has_menu(win_window_list)) || (!machine.paused() && wininput_should_hide_mouse())))
+ // Hide the mouse, if
+ // We have focus AND -nowindow AND -nomenu AND -nomouse
+ //
+ if (winwindow_has_focus() && (!video_config.windowed && !win_has_menu(win_window_list)) && !machine.options().mouse())
{
win_window_info *window = win_window_list;
RECT bounds;