From 07519ce890c4c09c47862df714c64605e1237b02 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Mon, 10 Oct 2011 07:56:14 +0000 Subject: [PATCH] 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. --- src/osd/windows/window.c | 11 ++++------- 1 file 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;