mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
* Improve mouse grabbing.
This fixes a bug where the mouse would be restricted to the window after the level is loaded even if the window isn't focused.
This commit is contained in:
@@ -114,6 +114,10 @@ void AppPlatform::clearDiff()
|
||||
|
||||
}
|
||||
|
||||
void AppPlatform::updateFocused(bool focused)
|
||||
{
|
||||
}
|
||||
|
||||
bool AppPlatform::shiftPressed()
|
||||
{
|
||||
return false;
|
||||
|
||||
@@ -47,6 +47,7 @@ public:
|
||||
virtual void setMouseGrabbed(bool b);
|
||||
virtual void getMouseDiff(int& x, int& y);
|
||||
virtual void clearDiff();
|
||||
virtual void updateFocused(bool focused);
|
||||
// Also add this to allow proper text input within the game.
|
||||
virtual bool shiftPressed();
|
||||
#endif
|
||||
|
||||
@@ -188,7 +188,7 @@ label_5:
|
||||
pInv->setSelectionSlotItemId(0, item);
|
||||
pInv->selectSlot(0);
|
||||
|
||||
// @TODO: SoundEngine
|
||||
m_pMinecraft->m_pSoundEngine->play("random.click");
|
||||
|
||||
m_pMinecraft->setScreen(nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user