OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 11:40 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Mouse Warp to Edge of Screen VirtualBox
PostPosted: Sat Jul 06, 2013 8:49 am 
Offline
Member
Member

Joined: Tue Nov 20, 2012 4:45 pm
Posts: 77
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,

_________________
Github of my OS


Last edited by Geometrian on Wed Jan 31, 2024 5:37 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Mouse Warp to Edge of Screen VirtualBox
PostPosted: Sat Jul 06, 2013 8:55 am 
Offline
Member
Member
User avatar

Joined: Wed Mar 21, 2012 3:01 pm
Posts: 930
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,


Top
 Profile  
 
 Post subject: Re: Mouse Warp to Edge of Screen VirtualBox
PostPosted: Sat Jul 06, 2013 8:57 am 
Offline
Member
Member

Joined: Sat Nov 21, 2009 5:11 pm
Posts: 852
To support this you'll need to make hypervisor calls using the VirtualBox SDK.


Top
 Profile  
 
 Post subject: Re: Mouse Warp to Edge of Screen VirtualBox
PostPosted: Sat Jul 06, 2013 4:32 pm 
Offline
Member
Member
User avatar

Joined: Wed Jul 13, 2011 7:38 pm
Posts: 558
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 118 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group