VBoxGuestR3LibMouse.cpp revision 1c94c0a63ba68be1a7b2c640e70d7a06464e4fca
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsync * VBoxGuestR3Lib - Ring-3 Support Library for VirtualBox guest additions, Mouse.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * Copyright (C) 2007 Sun Microsystems, Inc.
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsync * available from http://www.virtualbox.org. This file is free software;
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsync * you can redistribute it and/or modify it under the terms of the GNU
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * General Public License (GPL) as published by the Free Software
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * additional information or have any questions.
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsync/*******************************************************************************
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsync* Header Files *
f84cd77241a1c4b9106a92280611c659243e10d1vboxsync*******************************************************************************/
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsync * Retrieve mouse coordinates and features from the host.
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsync * @returns VBox status code.
611910c4ba57eb6db5c0d508ca7b923efd654aecvboxsync * @param pfFeatures Where to store the mouse features.
611910c4ba57eb6db5c0d508ca7b923efd654aecvboxsync * @param px Where to store the X co-ordinate.
134a71c1528b56afe4db843ab63ec5a5b849535bvboxsync * @param py Where to store the Y co-ordinate.
611910c4ba57eb6db5c0d508ca7b923efd654aecvboxsyncVBGLR3DECL(int) VbglR3GetMouseStatus(uint32_t *pfFeatures, uint32_t *px, uint32_t *py)
134a71c1528b56afe4db843ab63ec5a5b849535bvboxsync vmmdevInitRequest(&Req.header, VMMDevReq_GetMouseStatus);
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsync * Send mouse features to the host.
436b5c616e019c5e62053657c52d3ab5562ecbbfvboxsync * @returns VBox status code.
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsync * @param fFeatures Supported mouse pointer features.
3609dfc9f2733f4dc836c6a6bb3745398f280fcevboxsyncVBGLR3DECL(int) VbglR3SetMouseStatus(uint32_t fFeatures)