-
Notifications
You must be signed in to change notification settings - Fork 2
Restrict mouse to window #1
Comments
It should be pretty easy to do, if you want I can try tomorrow. |
I'm getting so frustrated having to shift-tab or alt-tab every time I want to use mouse wheel or here in borderless windowed showing my desktop in the middle of an invasion! |
Can't reproduce the issue, mouse cursor doesn't move for me if the game window is active. |
Hello, |
I see, maybe in this case there's no need to constantly reset mouse, try this one as well: https://transfer.sh/hDEjS/DyingLight.BorderlessWindowedMode.asi |
That one seems to work as well, mouse seems to be moving this time but without affecting anything on my second monitor if I use mouse wheel for example or in my case trying to move it top right to trigger the taskbar icon "show desktop". It doesn't until I hit shift-tab which then brings mouse and triggers it. |
So, which one would you prefer? I'll release it. |
Both seems good really, looks like you reset the position of the mouse in the second one if alt tabbed, not when bringing up the steam overlay but it really doesn't matter much to me as long as my mouse doesn't interfere with my second monitor and both seems to be doing that just fine. |
Okay, updated with the second one. |
Alright first of all I'm really sorry. At launch in (borderless)windowed mode the mouse will interact with second monitor (at least mouse wheel). I made a quick video showing it: https://streamable.com/tx84p I guess at the end what you added didn't do much? I'm really sorry. Thanks again. |
So, have you had a change to try the build above? |
Sorry I did, I just wanted to be sure to do proper testing this time. |
What about this one then: https://transfer.sh/kMmil/DyingLight.BorderlessWindowedMode.asi |
Same thing. |
Ok, this should do it for startup I think: https://transfer.sh/Ygj3f/DyingLight.BorderlessWindowedMode.asi |
Still the same. |
Hm, how about this one: https://transfer.sh/14gGyM/DyingLight.BorderlessWindowedMode.asi |
Sorry about late reply, just tried and same thing. |
So, you mean when you start the game and don't do anything, by the time you get to menu the mouse is still active on the other desktop unless you alt-tab and back? |
Exactly. |
I believe this should do it then: https://transfer.sh/2Wwx2/DyingLight.BorderlessWindowedMode.asi |
Apparently not. |
How come? For me when menu is loaded I can no longer interact with windows on the second screen. |
Ah, actually no, was able to reproduce. Weird. |
https://streamable.com/86egp |
Ok, I think it stops happening if I set cursor position also, try this: https://transfer.sh/JXi1K/DyingLight.BorderlessWindowedMode.asi |
It doesn't seem to show my cursor at the beginning anymore (which was only for a few seconds) but still interact with my other windows. |
If this doesn't work, then I'm out of ideas, probably have to leave it that way: https://transfer.sh/QDLTE/DyingLight.BorderlessWindowedMode.asi |
Tested it a bit and I think you got it this time, works like a charm. |
Nice, new version should be released shortly. |
Hello,
First of all thank you very much for this, much needed feature in pretty much any game.
I'd like to ask if it was possible to add a way to restrict the mouse to the Dying Light window with either a hotkey or just when focused and not alt-tabbed.
In a dual monitor setup my mouse goes to my other monitor and even though not visible, does interact with it if I use my mouse wheel for example or if it goes all the way top right on my taskbar and show my desktop.
Thanks again.
Niamor.
The text was updated successfully, but these errors were encountered: