Mouse grab behaviour...
@@ -50,6 +50,9 @@ public class MalmoModClient
{
this.deltaX = 0;
this.deltaY = 0;
+ if (Mouse.isGrabbed())
+ Mouse.setGrabbed(false);
+ Minecraft.getMinecraft().inGameHasFocus = false;
}
else
{
@@ -62,13 +65,9 @@ public class MalmoModClient
{
if (MalmoModClient.this.inputType != InputType.HUMAN)
{
- //Minecraft.getMinecraft().inGameHasFocus = false;
return;
}
- if (Boolean.parseBoolean(System.getProperty("fml.noGrab","false"))) return;
- Mouse.setGrabbed(true);
- this.deltaX = 0;
- this.deltaY = 0;
+ super.grabMouseCursor();
}
@Override
