return;
}
- if ( !mMouseCaptured )
- {
- mMouseCaptured = true;
- CaptureMouse();
- }
-
// did the cursor actually changed?
if ( type != mCursorType )
default: break;
}
+
+ if (mMouseCaptured)
+ ReleaseMouse();
+ }
+
+ if ( !mMouseCaptured )
+ {
+ mMouseCaptured = true;
+ CaptureMouse();
}
}