View Single Post
Old 30 April 2017, 22:42   #8
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,482
Ah yes. But the point about clipping to a rect which doesn't include the taskbar still applies.
Code:
void updatemouseclip (void)
{
    if (showcursor) {
        ClipCursor(NULL);
        amigawinclip_rect = amigawin_rect;
        if (!ClipCursor (&amigawinclip_rect))
            write_log(_T("ClipCursor error %d\n"), GetLastError());
    }
}
amigawinclip_rect will (I assume?) include part of the taskbar when the emulation window is partly off the bottom of the desktop. And what is ClipCursor(NULL) for?


Edit to add: When WinUAE is using raw input (i.e. not Windows Mouse), could you just clip the cursor to a 1-pixel rect and not bother with "warping" it to the centre of the window, since you don't care about WM_MOUSEMOVE then.

Last edited by mark_k; 01 May 2017 at 14:23.
mark_k is offline  
 
Page generated in 0.07713 seconds with 9 queries