http://bugs.winehq.org/show_bug.cgi?id=30476
Bug #: 30476 Summary: MacOSX: does fallback for disabled XInput2 work correctly? Product: Wine Version: 1.4 Platform: x86 OS/Version: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dinput AssignedTo: wine-bugs@winehq.org ReportedBy: zoroaster@inode.at Classification: Unclassified
The following minimal change of dlls/dinput/mouse.c seems to fix mouse input problem with the game Skyrim with Xinput2 disabled (because it does not work under OSX).
Question: Should warping be done if cursor is clipped or if it is not clipped?
static void warp_check( SysMouseImpl* This, BOOL force ) { ... - if (!This->clipped) + if (This->clipped) { mapped_center.x = (rect.left + rect.right) / 2; mapped_center.y = (rect.top + rect.bottom) / 2; TRACE("Warping mouse to %d - %d\n", mapped_center.x, mapped_center.y); SetCursorPos( mapped_center.x, mapped_center.y ); } ... }