Previous 15994 Revisions Next

r13004 Saturday 8th October, 2011 at 07:19:46 UTC by Robbbert
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

src/osd/windows/window.c
r13003r13004
601601
602602   assert(GetCurrentThreadId() == main_threadid);
603603
604   // if we should hide the mouse, then do it
605   // rules are:
606   //   1. we must have focus before hiding the cursor
607   //   2. we also hide the cursor in full screen mode and when the window doesn't have a menu
608   //   3. we also hide the cursor in windowed mode if we're not paused and
609   //      the input system requests it
610   if (winwindow_has_focus() && ((!video_config.windowed && !win_has_menu(win_window_list)) || (!machine.paused() && wininput_should_hide_mouse())))
604   // Hide the mouse, if
605   // We have focus AND -nowindow AND -nomenu AND -nomouse
606   //
607   if (winwindow_has_focus() && (!video_config.windowed && !win_has_menu(win_window_list)) && !machine.options().mouse())
611608   {
612609      win_window_info *window = win_window_list;
613610      RECT bounds;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team