Changeset 26982 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 3, 2010 10:28:21 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 58284
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MouseImpl.cpp
r26964 r26982 120 120 mpDrv = NULL; 121 121 122 #ifdef VBOXBFE_WITHOUT_COM 123 mParent = NULL; 124 #else 122 125 unconst(mParent).setNull(); 126 #endif 123 127 } 124 128 … … 428 432 HRESULT rc = convertDisplayWidth(x, &mouseXAbs); 429 433 ComAssertComRCRet(rc, rc); 430 /// TODO: Remove those strings? 431 //if (mouseXAbs > 0xffff) 432 // mouseXAbs = mLastAbsX; 434 /** 435 * @todo multi-monitor Windows guests expect this to be unbounded. 436 * Fix for the rest. 437 */ 438 /* if (mouseXAbs > 0xffff) 439 mouseXAbs = mLastAbsX; */ 433 440 434 441 uint32_t mouseYAbs; 435 442 rc = convertDisplayHeight(y, &mouseYAbs); 436 443 ComAssertComRCRet(rc, rc); 437 /// TODO: Remove those strings? 438 //if (mouseYAbs > 0xffff) 439 // mouseYAbs = mLastAbsY; 444 /* if (mouseYAbs > 0xffff) 445 mouseYAbs = mLastAbsY; */ 440 446 441 447 uint32_t fButtons = mouseButtonsToPDM(buttonState); -
trunk/src/VBox/Main/include/MouseImpl.h
r26935 r26982 53 53 54 54 class ATL_NO_VTABLE Mouse : 55 public VirtualBoxBase, 55 public VirtualBoxBase 56 #ifndef VBOXBFE_WITHOUT_COM 57 , 56 58 public VirtualBoxSupportErrorInfoImpl<Mouse, IMouse>, 57 59 public VirtualBoxSupportTranslation<Mouse>, 58 60 VBOX_SCRIPTABLE_IMPL(IMouse) 61 #endif 59 62 { 60 63 public: … … 134 137 void sendMouseCapsCallback(void); 135 138 139 #ifdef VBOXBFE_WITHOUT_COM 140 Console *mParent; 141 #else 136 142 const ComObjPtr<Console, ComWeakRef> mParent; 143 #endif 137 144 /** Pointer to the associated mouse driver. */ 138 145 struct DRVMAINMOUSE *mpDrv; … … 147 154 }; 148 155 156 #ifdef VBOXBFE_WITHOUT_COM 157 /** @todo make this a member of Console */ 158 extern Mouse *gMouse; 159 160 /** @todo can we get these from the API somehow? */ 161 enum 162 { 163 MouseButtonState_LeftButton = 1, 164 MouseButtonState_RightButton = 2, 165 MouseButtonState_MiddleButton = 4, 166 MouseButtonState_XButton1 = 8, 167 MouseButtonState_XButton2 = 16, 168 }; 169 #endif 170 149 171 #endif // !____H_MOUSEIMPL 150 172 /* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note:
See TracChangeset
for help on using the changeset viewer.