[vbox-dev] How to releaseMouse from guest os

Michael Thayer michael.thayer at oracle.com
Fri Nov 15 07:19:02 UTC 2013


On 15/11/13 04:30, magicdmer wrote:
> I read the codes of UIMouseHandler.cpp and find this function :
> void UIMouseHandler::releaseMouse()
> It can release the mouse from guest os
> But I look up the VirtualBox SDK help ,can't find any reference functions
> about releaseMouse .
> Can someone help me?

There is no such API function, as mouse capturing is an implementation 
detail in the user interface and the API is not aware of it.  What the 
API sees is messages such as "putMouseEvent" and 
"putMouseEventAbsolute", and it does not know how they are produced.


ORACLE Deutschland B.V. & Co. KG   Michael Thayer
Werkstrasse 24                     VirtualBox engineering
71384 Weinstadt, Germany           mailto:michael.thayer at oracle.com

Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603
Geschäftsführer: Jürgen Kunz

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher

More information about the vbox-dev mailing list