Mouse.cpp revision 1b9094e9e0e2b6dc15ba937a7d4b14736aea339e
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync/* $Revision$ */
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * VBoxGuestLibR0 - Mouse Integration.
c58f1213e628a545081c70e26c6b67a841cff880vboxsync * Copyright (C) 2012 Oracle Corporation
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * available from http://www.virtualbox.org. This file is free software;
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * you can redistribute it and/or modify it under the terms of the GNU
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * General Public License (GPL) as published by the Free Software
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * The contents of this file may alternatively be used under the terms
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * of the Common Development and Distribution License Version 1.0
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * VirtualBox OSE distribution, in which case the provisions of the
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * CDDL are applicable instead of those of the GPL.
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync * You may elect to license modified versions of this file under the
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync * terms and conditions of either the GPL or the CDDL or both.
f5e53763b0a581b0299e98028c6c52192eb06785vboxsyncDECLVBGL(int) VbglSetMouseNotifyCallback(PFNVBOXGUESTMOUSENOTIFY pfnNotify,
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync return vbglDriverIOCtl(pDriver, VBOXGUEST_IOCTL_SET_MOUSE_NOTIFY_CALLBACK,
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsyncDECLVBGL(int) VbglGetMouseStatus(uint32_t *pfFeatures, uint32_t *px,
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync vmmdevInitRequest(&Req.header, VMMDevReq_GetMouseStatus);
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsync rc = vbglDriverIOCtl(pDriver, VBOXGUEST_IOCTL_VMMREQUEST(sizeof(Req)),
eb90548e8e40e597d65cdcc16ec958a3e09c1d73vboxsyncDECLVBGL(int) VbglSetMouseStatus(uint32_t fFeatures)