Mouse Viewport mismatch in VirtualBox

Developer's Forum, for discussion of bugs, code, and other developmental aspects of DOSBox.

Mouse Viewport mismatch in VirtualBox

Postby Codian » 2019-4-03 @ 19:45

Hi everybody,

I'm a DOSBox user from the first days and was ever using it for playing M.A.X. Commander, the only game I ever got hooked on. My configuration of DFEND Reloaded 1.4.4, DOSBox v0.47 and M.A.X. I is perfectly working, stable and performant on a Windows 7 machine.

But now I am faced with a challenging problem. I have to migrate my private computer into a VirtualBox 6.0 machine. So I installed DFEND Reloaded and DOSBox v0.47 on that VM. I could get everything to work, all host OS drivers, hypervisor drivers, client OS drivers and client client (DOS) drivers are properly configured and work in chain like a charm.

With one exception: when the mouse is locked to the DOS window, it does not emulate the viewport of the DOS window but that of the virtual machine. That means the mouse does not stop but disappears at the DOS window borders and is ridiculously accelerated as if it maps the coordinates of the little DOSBox to the large VM window while drawing to the DOS window.

I have not found any settings to fix that. I can only adjust mouse locking and sensitivity which doesn't help. Is it a bug? Is VM support not implemented? Or am I missing something?

I would be glad for any help,
Codian
User avatar
Codian
Newbie
 
Posts: 1
Joined: 2019-4-03 @ 18:54

Re: Mouse Viewport mismatch in VirtualBox

Postby Qbix » 2019-4-03 @ 20:01

Maybe don't use dosbox in a virtual machine ? Do you have to ?
I'd guess that it is a bug of virtual box instead of dosbox ?
Isn't there a dosbox port for your normal machine ?
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10918
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Mouse Viewport mismatch in VirtualBox

Postby DosFreak » 2019-4-03 @ 23:35

If using DOSBox in a virtual machine then you may need to disable relative mode or possible disable the mouse additions:
viewtopic.php?f=31&t=62703&p=708502&hilit=relative#p706750

Best option is to not run emulators or virtual machines inside emulators or virtual machines.
User avatar
DosFreak
l33t++
 
Posts: 10438
Joined: 2002-6-30 @ 16:35
Location: Your Head


Return to DOSBox Development

Who is online

Users browsing this forum: Charles D. Ward and 2 guests