forked from cafeberry/cafeberry
add kbm support
This commit is contained in:
@@ -501,6 +501,13 @@ void Minecraft::setScreen(Screen *screen)
|
||||
this->screen->removed();
|
||||
}
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
if (screen != nullptr && InputManager.IsMouseCaptured())
|
||||
{
|
||||
InputManager.SetMouseCaptured(false);
|
||||
}
|
||||
#endif
|
||||
|
||||
//4J Gordon: Do not force a stats save here
|
||||
/*if (dynamic_cast<TitleScreen *>(screen)!=NULL)
|
||||
{
|
||||
@@ -2184,8 +2191,24 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
if (iPad == ProfileManager.GetPrimaryPad())
|
||||
{
|
||||
if ((screen != nullptr || ui.GetMenuDisplayed(iPad)) && InputManager.IsMouseCaptured())
|
||||
{
|
||||
InputManager.SetMouseCaptured(false);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (screen == NULL && !ui.GetMenuDisplayed(iPad) )
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
if (iPad == ProfileManager.GetPrimaryPad() && !InputManager.IsMouseCaptured() /*&& InputManager.IsWindowFocused()*/)
|
||||
{
|
||||
InputManager.SetMouseCaptured(true);
|
||||
}
|
||||
#endif
|
||||
// 4J-PB - add some tooltips if required
|
||||
int iA=-1, iB=-1, iX, iY=IDS_CONTROLS_INVENTORY, iLT=-1, iRT=-1, iLB=-1, iRB=-1, iLS=-1, iRS=-1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user