Hi,
I have successfully got PS/2 keyboard and mouse working, along with a nice, dynamically chosen VESA mode to go with it. It doesn't work quite right on Bochs, but it seems to be just fine on VirtualBox.
The only issue is that the mouse pointer seems to only be picking up relative movement within the window. If the mouse is outside the window, the cursor doesn't move. More troublingly, when the mouse cursor moves back over the window, the mouse cursor inside the VM doesn't jump to the location of the real mouse.
I wouldn't exactly expect it to, since the code only measures offsets, but I know it's possible (the Ubuntu VM I'm using to build this thing in the first place works great in this regard, for example). What should I look at to fix?
Thanks,
Mouse Warp to Edge of Screen VirtualBox
-
- Member
- Posts: 77
- Joined: Tue Nov 20, 2012 4:45 pm
- Contact:
Mouse Warp to Edge of Screen VirtualBox
Last edited by Geometrian on Wed Jan 31, 2024 5:37 pm, edited 1 time in total.
Re: Mouse Warp to Edge of Screen VirtualBox
This is possible through various extensions that VirtualBox provides that Linux is able to use. I wouldn't count on the mouse functioning correctly unless it is always inside the window or you muse the mouse capture mode of VirtualBox,
Re: Mouse Warp to Edge of Screen VirtualBox
To support this you'll need to make hypervisor calls using the VirtualBox SDK.
- Kazinsal
- Member
- Posts: 559
- Joined: Wed Jul 13, 2011 7:38 pm
- Libera.chat IRC: Kazinsal
- Location: Vancouver
- Contact:
Re: Mouse Warp to Edge of Screen VirtualBox
VirtualBox supports absolute pointing devices through both USB absolute pointing device emulation and calls to the hypervisor. The hypervisor option is probably easier to work with but still likely difficult. Easier than a whole USB stack I'm sure.