https://bugs.winehq.org/show_bug.cgi?id=39665
Bug ID: 39665 Summary: dinput: MotoGP 3 demo fails to accept key presses to control the driver. Product: Wine Version: 1.8-rc1 Hardware: x86 URL: https://appdb.winehq.org/objectManager.php?sClass=vers ion&iId=6934 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dinput Assignee: wine-bugs@winehq.org Reporter: bernhardu@vr-web.de Distribution: Debian
The game calls SetCooperativeLevel twice. First with an invalid hwnd (but not NULL) and later with the real hwnd. Unfortunately the first call succeeded and saved the invalid one in the device. Both calls with flag DISCL_FOREGROUND.
Later calls to Acquire are failing because saved (invalid) hwnd is not the foreground window.
trace:dinput:IDirectInputDevice2WImpl_SetCooperativeLevel (0x1a63d00) 0x400000,0x00000005 trace:dinput:IDirectInputDevice2WImpl_SetCooperativeLevel (0x1a66218) 0x10072,0x00000016