Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Radiant on Tue 12/09/2023 21:19:11

Title: Mouse freezes under Linux
Post by: Radiant on Tue 12/09/2023 21:19:11
Trying to run an AGS game from Linux, I find that the mouse cursor freezes (for the entire system). The game still responds to mouse clicks and to keyboard commands, but for the entire Linux system the mouse is frozen in the middle of the screen until I quit AGS.

This is Ubuntu 22.04.2 LTS on a virtual machine. It happens with both AGS 3.3 and with 3.6, leading me to think it's probably a driver issue or a faulty install of Allegro or something. Still, does this look familiar to anyone? Suggestions are welcome, thank you for your time!
Title: Re: Mouse freezes under Linux
Post by: eri0o on Wed 13/09/2023 19:33:41
I can't reproduce this, can you tell me which virtual machine (Virtual Box, WSL2+Win11, VMWare...) you are using and which host system?
Title: Re: Mouse freezes under Linux
Post by: Radiant on Fri 15/09/2023 08:10:01
It's VMware Workstation 7 running under Windows 11.

I've tested this with both Heroine's Quest and Cedric Shooter ( https://brocantygames.itch.io/cedric-shooter ).
The startup logs on stdout tell me this about the mouse:
Mouse control: on, base: 1,000000, speed: 1,000000
Title: Re: Mouse freezes under Linux
Post by: morganw on Fri 15/09/2023 10:21:11
I'm fairly sure that there were previous issues which were specific to the VMware mouse integration, although this was when AGS was using Allegro.

Do you have an option to disable the VMware mouse integration and just lock the mouse input to the VM window?
Title: Re: Mouse freezes under Linux
Post by: Radiant on Tue 19/09/2023 14:48:34
Quote from: morganw on Fri 15/09/2023 10:21:11Do you have an option to disable the VMware mouse integration and just lock the mouse input to the VM window?

Thank you for the tip. Googling it suggests to edit %APPDATA%\VMware\preferences.ini and add the lines
pref.motionGrab = "FALSE"
pref.motionUngrab = "FALSE"

And that works; problem solved!