Mouse not being captured in full screen
Mouse not being captured in full screen
I'm attempting to run Fallout 4 on 4.17, and I've been having trouble getting the mouse to work. It appears as if the mouse is not being captured by the application, whether or not I have the option in winecfg enabled to automatically capture the mouse in full screen applications. I can move the mouse around on the menu, but I cannot click anything. If loading a saved game or starting a new one, moving the mouse will do nothing in-game, when it should be moving the view around.
This has been an issue for the last few versions, though I don't remember when it started. At this point, I'm not even sure if it is the version. In any case, it's a clean wine prefix, with only the prerequisites for the game installed. I've also tried emulating a virtual desktop, though this made no difference. DXVK is also installed, but I've attempted this without it as well, so it doesn't look like it's a contributing factor.
Suggestions?
This has been an issue for the last few versions, though I don't remember when it started. At this point, I'm not even sure if it is the version. In any case, it's a clean wine prefix, with only the prerequisites for the game installed. I've also tried emulating a virtual desktop, though this made no difference. DXVK is also installed, but I've attempted this without it as well, so it doesn't look like it's a contributing factor.
Suggestions?
Re: Mouse not being captured in full screen
@hiigaran
Have you followed the recommendations for settings and overrides from:
WineHQ AppDB : Fallout 4 / Steam : WINEPREFIX Post-installation Setup Script (DLL Overrides & Settings) ?
Bob
Have you followed the recommendations for settings and overrides from:
WineHQ AppDB : Fallout 4 / Steam : WINEPREFIX Post-installation Setup Script (DLL Overrides & Settings) ?
Bob
Re: Mouse not being captured in full screen
It mentions something about a mousewarp override, which might be what I need. However, I'm not sure what to do with that. One guide's instructions were to make a .reg file with the following contents:
Then run the following command:
This however, gives me the error:
Is there another way to do this?
Code: Select all
REGEDIT4
[\HKEY_CURRENT_USER\Software\Wine\DirectInput]
"MouseWarpOverride"="force"
Code: Select all
wine regedit registryfile.reg
Code: Select all
regedit: Unable to open the registry key '\HKEY_CURRENT_USER\Software\Wine\DirectInput'.
Re: Mouse not being captured in full screen
@ hiigaran
There shouldn't be a backslash before the hive name, in that registry file.
You can set this mouse option with a single Wine command anyway:
I presume you've set:
in both ini files:
You'd also want:
Bob
There shouldn't be a backslash before the hive name, in that registry file.
You can set this mouse option with a single Wine command anyway:
Code: Select all
wine reg.exe ADD "HKEY_CURRENT_USER\Software\Wine\DirectInput" "/v" "MouseWarpOverride" "/t" "REG_SZ" "/d" "force"
Code: Select all
bBackgroundMouse=1
Code: Select all
"${WINEPREFIX}/drive_c/users/$USER/My Documents/My Games/Fallout4/Fallout4.ini"
"${GAMEDIR}/Fallout4_Default.ini"
Code: Select all
winetricks grabfullscreen=y
Last edited by Bob Wya on Fri Oct 04, 2019 2:18 pm, edited 2 times in total.
Re: Mouse not being captured in full screen
Well, the command worked, but it didn't make a difference in-game. Still the same issues.
Re: Mouse not being captured in full screen
That registry setting (mouse warping) is generally only going fix the instance where your mouse escapes the main game window (e.g. in a dual monitor setup).
So I'm not surprised it doesn't fix your issue.
Like I said make sure you've correctly setup in the Fallout4 ini files.
You'll probably want to be using wine-staging 4.17 (if you have been tested with vanilla wine)...
Your issue may be related to what-ever Desktop Environment you are using.
Bob
Re: Mouse not being captured in full screen
I was meant to type 'commands'. Couldn't find the edit button for my post. The .ini files already had those lines set, as well. Either way, it didn't even stop the mouse from escaping the game window.
As for the package I should be using, can I confirm it's wine-staging, and not winehq-staging, as per the installation instructions here?
DE is GNOME. Fallout 4 used to work before, but perhaps as things updated, something broke?
As for the package I should be using, can I confirm it's wine-staging, and not winehq-staging, as per the installation instructions here?
DE is GNOME. Fallout 4 used to work before, but perhaps as things updated, something broke?
Re: Mouse not being captured in full screen
Quick update on this: Running 4.11, and no issues. Apparently others have been saying there has been an issue with raw mouse inputs or something. No idea what it means, but there's clearly some sort of regression here.