Mouse Warp to Edge of Screen VirtualBox
Posted: Sat Jul 06, 2013 8:49 am
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,
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,