- Timestamp:
- Dec 22, 2008 1:36:56 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MouseImpl.cpp
r14772 r15716 221 221 if (mouseCaps & VMMDEV_MOUSEHOSTWANTSABS) 222 222 { 223 mParent->getVMMDev()->getVMMDevPort() 224 ->pfnSetMouseCapabilities(mParent->getVMMDev()->getVMMDevPort(), uHostCaps);223 mParent->getVMMDev()->getVMMDevPort()->pfnSetMouseCapabilities( 224 mParent->getVMMDev()->getVMMDevPort(), uHostCaps); 225 225 } 226 226 … … 235 235 int vrc = mpDrv->pUpPort->pfnPutEvent(mpDrv->pUpPort, dx, dy, dz, fButtons); 236 236 if (RT_FAILURE (vrc)) 237 rc = setError (E_FAIL, tr ("Could not send the mouse event to the virtual mouse (%Rrc)"), 238 vrc); 237 rc = setError (VBOX_E_IPRT_ERROR, 238 tr ("Could not send the mouse event to the virtual mouse (%Rrc)"), 239 vrc); 239 240 240 241 return rc; … … 277 278 if (!(mouseCaps & VMMDEV_MOUSEHOSTWANTSABS)) 278 279 { 279 mParent->getVMMDev()->getVMMDevPort() 280 ->pfnSetMouseCapabilities(mParent->getVMMDev()->getVMMDevPort(),281 280 mParent->getVMMDev()->getVMMDevPort()->pfnSetMouseCapabilities( 281 mParent->getVMMDev()->getVMMDevPort(), 282 uHostCaps | VMMDEV_MOUSEHOSTWANTSABS); 282 283 } 283 284 … … 296 297 297 298 /* 298 * Send the absolute mouse position to the VMM device 299 * Send the absolute mouse position to the VMM device. 299 300 */ 300 301 int vrc = mParent->getVMMDev()->getVMMDevPort() … … 303 304 ComAssertRCRet (vrc, E_FAIL); 304 305 305 // check if the guest actually wants absolute mouse positions306 // Check if the guest actually wants absolute mouse positions. 306 307 if (mouseCaps & VMMDEV_MOUSEGUESTWANTSABS) 307 308 { … … 317 318 fButtons); 318 319 if (RT_FAILURE (vrc)) 319 rc = setError (E_FAIL, tr ("Could not send the mouse event to the virtual mouse (%Rrc)"), 320 vrc); 320 rc = setError (VBOX_E_IPRT_ERROR, 321 tr ("Could not send the mouse event to the virtual mouse (%Rrc)"), 322 vrc); 321 323 } 322 324 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r15715 r15716 8979 8979 Initiates a mouse event using relative pointer movements 8980 8980 along x and y axis. 8981 8982 <result name="E_ACCESSDENIED"> 8983 Console not powered up. 8984 </result> 8985 <result name="VBOX_E_IPRT_ERROR"> 8986 Could not send mouse event to virtual mouse. 8987 </result> 8988 8981 8989 </desc> 8982 8990 … … 9021 9029 start from <tt>[1,1]</tt> which corresponds to the top left 9022 9030 corner of the virtual display. 9031 9032 <result name="E_ACCESSDENIED"> 9033 Console not powered up. 9034 </result> 9035 <result name="VBOX_E_IPRT_ERROR"> 9036 Could not send mouse event to virtual mouse. 9037 </result> 9023 9038 9024 9039 <note>
Note:
See TracChangeset
for help on using the changeset viewer.