http://bugs.winehq.org/show_bug.cgi?id=21158
Summary: Hitman: Contracts ignores mouse press events Product: Wine Version: 1.1.35 Platform: x86 URL: http://www.gamershell.com/download_5663.shtml OS/Version: Linux Status: NEW Keywords: download, regression Severity: minor Priority: P2 Component: directx-dinput AssignedTo: wine-bugs@winehq.org ReportedBy: arethusa26@gmail.com CC: vitaliy@kievinfo.com
With wine-1.1.35-180-g20a50f3, after launching Hitman: Contracts, mouse press events at the main menu are ignored by the game. Since a user reported that the game worked normally in wine-1.1.9, a regression test was performed, which indicated:
3743a1a7ca170c765cd779c61b9e362c5b1c5203 is first bad commit commit 3743a1a7ca170c765cd779c61b9e362c5b1c5203 Author: Vitaliy Margolen wine-patches@kievinfo.com Date: Sun Feb 1 13:11:46 2009 -0700
dinput: Consume mouse & keyboard events in exclusive mode.
:040000 040000 6ae6b43b3c100af38ed4f27384470dc4d2595bc1 700b35b9bc8fd27239ee8faaed8ca1c10cfc31d4 M dlls
Wine built prior to the indicated commit allows mouse input to work normally. Interestingly, doing graphical mode changes (via keyboard input) makes mouse input work again. The AppDB also suggests adding the strings:
UseDirectInputMouse UseDirectInputKeyboard
to the HitmanContracts.ini configuration file to have mouse input work. The only visible output under wine-1.1.35-180-g20a50f3 is:
fixme:dinput:SysMouseAImpl_Acquire Clipping cursor to (0,0)-(1280,1024) fixme:win:EnumDisplayDevicesW ((null),0,0x32eb58,0x00000000), stub! fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x253b060,0x253afa8): stub fixme:dsound:DllCanUnloadNow (void): stub fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x253b060,0x253afa8): stub (Z:\code\hitman2\gui\MainMenu.cpp:554)Hitman Contracts build 171 (Apr 26 2004 14:42:27) fixme:dsound:DllCanUnloadNow (void): stub
http://bugs.winehq.org/show_bug.cgi?id=21158
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|vitaliy@kievinfo.com |
http://bugs.winehq.org/show_bug.cgi?id=21158
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |3743a1a7ca170c765cd779c61b9 | |e362c5b1c5203
http://bugs.winehq.org/show_bug.cgi?id=21158
--- Comment #1 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-10-15 00:50:45 CDT --- This seems to be working for me. Can you check if you still having problems with this game?
http://bugs.winehq.org/show_bug.cgi?id=21158
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME
--- Comment #2 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-11-11 11:39:59 CST --- Still works for me.
http://bugs.winehq.org/show_bug.cgi?id=21158
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Austin English austinenglish@gmail.com 2011-11-14 14:25:48 CST --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=21158
--- Comment #4 from matthias_berndt@gmx.de --- I would like to point out that this bug is not fixed. I'm having the exact same problem running the Steam version of Hitman: Contracts on Proton 6.3. As soon as I switch to another window using Alt-Tab, the mouse buttons stop working. When I switch the resolution, they will work again. Oddly enough, even restarting the game (or the computer) doesn't solve the problem, you really need to change the resolution!
https://bugs.winehq.org/show_bug.cgi?id=21158
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #5 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to matthias_berndt from comment #4)
As soon as I switch to another window using Alt-Tab, the mouse buttons stop working. When I switch the resolution, they will work again. Oddly enough, even restarting the game (or the computer) doesn't solve the problem, you really need to change the resolution!
Hello,
In the case of Alt-Tabbing, bug 27232 may be at play. It will stuck ALT in pressed state and every mouse click will result in Alt+mouse click. Some games ignore Alt+mouse click if it's not bound to any action.
Try pressing and releasing Alt after you give back the focus to the game. Does it change anything?
Regards.
https://bugs.winehq.org/show_bug.cgi?id=21158
matthias_berndt@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |matthias_berndt@gmx.de
--- Comment #6 from matthias_berndt@gmx.de --- Hi Olivier F. R. Dierick,
Thank you for responding. Pressing Alt doesn't fix the problem, and that would have been surprising since, as mentioned before, the problem persists even after restarting the entire game or even rebooting the machine. The only way to fix it is to change the screen resolution in the game.
That said, the workaround in HitmanContracts.ini also works, so I guess it's not a critical issue for this particular game. But it might still be a bug in some edge case that also affects other programs, there's no way to know…
https://bugs.winehq.org/show_bug.cgi?id=21158
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|WORKSFORME |--- Status|CLOSED |REOPENED URL|http://www.gamershell.com/d |https://www.gamepressure.co |ownload_5663.shtml |m/download.asp?ID=4921
--- Comment #7 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
Sorry, the issue was unclear to me.
Is this correct? - Start game, mouse input is working; - Alt-tab out and in, mouse input is broken; - Restart wine & game, mouse input is still broken; - Reboot computer & restart game, mouse input is still broken; - Change resolution in game, mouse input works again; - Restart wine & game, mouse input is still working; - Reboot computer & restart game, mouse input is still working;
Hitman Contracts has a demo (The download URL is now replaced with a working link). Please, can you test if the issue affects the demo on your system?
Regards.
https://bugs.winehq.org/show_bug.cgi?id=21158
--- Comment #8 from matthias_berndt@gmx.de --- Hi Olivier,
yes, that is the behaviour I'm observing, and yes, I can reproduce it with the demo.
A word of warning: the demo seems to be an older version of the game, and when I first started it, it set the screen to an unsupported resolution and the machine crashed. So I recommend not to launch the demo immediately after installation but edit HitmanContracts.ini first and enter the screen's native resolution (1920x1080 in my case). Then it should launch fine.
https://bugs.winehq.org/show_bug.cgi?id=21158
--- Comment #9 from matthias_berndt@gmx.de --- Oh, to be clear: I've tested this with both Proton 6.3 and Wine 6.16 (from Fedora). The bug happens on both of them.
https://bugs.winehq.org/show_bug.cgi?id=21158
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #10 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with vanilla wine-6.21?
https://bugs.winehq.org/show_bug.cgi?id=21158
Keenan Weaver keenanweaver@pm.me changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |keenanweaver@pm.me
--- Comment #11 from Keenan Weaver keenanweaver@pm.me --- (In reply to joaopa from comment #10)
Does the bug still occur with vanilla wine-6.21?
Yes, this still occurs.
https://bugs.winehq.org/show_bug.cgi?id=21158
--- Comment #12 from joaopa jeremielapuree@yahoo.fr --- Did you try with vanilla wine-7.0-rc1?
https://bugs.winehq.org/show_bug.cgi?id=21158
--- Comment #13 from matthias_berndt@gmx.de --- No, and to be honest I've finished the game at this point, so I can't really be bothered to try.
https://bugs.winehq.org/show_bug.cgi?id=21158
--- Comment #14 from Keenan Weaver keenanweaver@pm.me --- (In reply to joaopa from comment #12)
Did you try with vanilla wine-7.0-rc1?
Yes, just tested it now on 7.0-rc1, same behavior.
https://bugs.winehq.org/show_bug.cgi?id=21158
Matheus matheus.venturini@acad.ufsm.br changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |matheus.venturini@acad.ufsm | |.br
--- Comment #15 from Matheus matheus.venturini@acad.ufsm.br --- Still happens in 8.1.