View Single Post
Old 30 April 2017, 23:42   #8
Registered User
Join Date: Aug 2004
Posts: 2,828
Ah yes. But the point about clipping to a rect which doesn't include the taskbar still applies.
void updatemouseclip (void)
    if (showcursor) {
        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 15:23.
mark_k is offline  
Page generated in 0.08475 seconds with 9 queries