mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Removed ClipCursor which prevented cursor from leaving client window.
Disabled cursor being re-centered during progress screen.
This commit is contained in:
@ -1286,6 +1286,8 @@ void plClient::IIncProgress (hsScalar byHowMuch, const char * text)
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
void plClient::IStartProgress( const char *title, hsScalar len )
|
void plClient::IStartProgress( const char *title, hsScalar len )
|
||||||
{
|
{
|
||||||
|
plInputManager::SetRecenterMouse(false);
|
||||||
|
|
||||||
if (fProgressBar)
|
if (fProgressBar)
|
||||||
{
|
{
|
||||||
fProgressBar->SetLength(fProgressBar->GetMax()+len);
|
fProgressBar->SetLength(fProgressBar->GetMax()+len);
|
||||||
@ -2191,7 +2193,6 @@ void plClient::ResetDisplayDevice(int Width, int Height, int ColorDepth, hsBool
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetWindowPos( fWindowHndl, HWND_TOP, 0, 0, Width, Height, flags );
|
SetWindowPos( fWindowHndl, HWND_TOP, 0, 0, Width, Height, flags );
|
||||||
::ClipCursor(nil);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WindowActivate(true);
|
WindowActivate(true);
|
||||||
|
@ -795,7 +795,6 @@ void plMouseDevice::HandleWindowActivate(bool bActive, HWND hWnd)
|
|||||||
// rect.bottom /= plInputManager::GetInstance()->GetMouseScale();
|
// rect.bottom /= plInputManager::GetInstance()->GetMouseScale();
|
||||||
|
|
||||||
::MapWindowPoints( hWnd, NULL, (POINT *)&rect, 2 );
|
::MapWindowPoints( hWnd, NULL, (POINT *)&rect, 2 );
|
||||||
::ClipCursor(&rect);
|
|
||||||
::ShowCursor( FALSE );
|
::ShowCursor( FALSE );
|
||||||
SetCapture(hWnd);
|
SetCapture(hWnd);
|
||||||
|
|
||||||
@ -803,7 +802,6 @@ void plMouseDevice::HandleWindowActivate(bool bActive, HWND hWnd)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ReleaseCapture();
|
ReleaseCapture();
|
||||||
::ClipCursor(nil);
|
|
||||||
::ShowCursor( TRUE );
|
::ShowCursor( TRUE );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -547,7 +547,6 @@ void plDInputMgr::AddDevice(IDirectInputDevice8* device)
|
|||||||
|
|
||||||
void plDInputMgr::ConfigureDevice()
|
void plDInputMgr::ConfigureDevice()
|
||||||
{
|
{
|
||||||
::ClipCursor(nil);
|
|
||||||
::ShowCursor( TRUE );
|
::ShowCursor( TRUE );
|
||||||
ReleaseCapture();
|
ReleaseCapture();
|
||||||
|
|
||||||
@ -571,10 +570,6 @@ void plDInputMgr::ConfigureDevice()
|
|||||||
for (int i = 0; i < fDI->fSticks.Count(); i++)
|
for (int i = 0; i < fDI->fSticks.Count(); i++)
|
||||||
fDI->fSticks[i]->fDevice->SetActionMap( fDI->fActionFormat, NULL, DIDSAM_FORCESAVE );
|
fDI->fSticks[i]->fDevice->SetActionMap( fDI->fActionFormat, NULL, DIDSAM_FORCESAVE );
|
||||||
|
|
||||||
RECT rect;
|
|
||||||
::GetClientRect(fhWnd,&rect);
|
|
||||||
::ClientToScreen(fhWnd,(LPPOINT)&rect);
|
|
||||||
::ClipCursor(&rect);
|
|
||||||
::ShowCursor( FALSE );
|
::ShowCursor( FALSE );
|
||||||
SetCapture(fhWnd);
|
SetCapture(fhWnd);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user