Changeset 28099 in vbox for trunk/src/VBox/Devices/VMMDev
- Timestamp:
- Apr 8, 2010 3:35:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r28059 r28099 2005 2005 PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY); 2006 2006 2007 bool bCapsChanged = ((capabilities & VMMDEV_MOUSE_HOST_CAN_ABSOLUTE) 2008 != (pThis->mouseCapabilities & VMMDEV_MOUSE_HOST_CAN_ABSOLUTE)); 2009 2010 Log(("vmmdevSetMouseCapabilities: bCapsChanged %d\n", bCapsChanged)); 2011 2012 if (capabilities & VMMDEV_MOUSE_HOST_CANNOT_HWPOINTER) 2013 pThis->mouseCapabilities |= VMMDEV_MOUSE_HOST_CANNOT_HWPOINTER; 2014 else 2015 pThis->mouseCapabilities &= ~VMMDEV_MOUSE_HOST_CANNOT_HWPOINTER; 2016 2017 if (capabilities & VMMDEV_MOUSE_HOST_CAN_ABSOLUTE) 2018 pThis->mouseCapabilities |= VMMDEV_MOUSE_HOST_CAN_ABSOLUTE; 2019 else 2020 pThis->mouseCapabilities &= ~VMMDEV_MOUSE_HOST_CAN_ABSOLUTE; 2021 2022 if (bCapsChanged) 2007 bool bNotify = ( (capabilities & VMMDEV_MOUSE_NOTIFY_GUEST_MASK) 2008 != (pThis->mouseCapabilities & VMMDEV_MOUSE_NOTIFY_GUEST_MASK)); 2009 2010 Log(("vmmdevSetMouseCapabilities: bNotify %d\n", bNotify)); 2011 2012 pThis->mouseCapabilities &= ~VMMDEV_MOUSE_HOST_MASK; 2013 pThis->mouseCapabilities |= (capabilities & VMMDEV_MOUSE_HOST_MASK); 2014 if (bNotify) 2023 2015 VMMDevNotifyGuest (pThis, VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED); 2024 2016
Note:
See TracChangeset
for help on using the changeset viewer.