cont2PosZ = userScale * cont2.pos[2] * ZDIRECTION;
if( mc.lookaimController != this) return;
if( mc.theWorld != null )
{
EntityClientPlayerMP thePlayer = mc.thePlayer;
//buttons?
//TODO: move this somewhere sane and make configurable
GameSettings settings = mc.gameSettings;
if((cont2.buttons & EnumButton.START.mask())>0 &&
(lastcont2Buttons & EnumButton.START.mask()) == 0)
{
if(mc.currentScreen != null)
thePlayer.closeScreen();
else
settings.keyBindInventory.pressTime=1;
}
if((cont1.buttons & EnumButton.START.mask())>0 &&
(lastcont1Buttons & EnumButton.START.mask()) == 0)
{
if(mc.currentScreen != null)
thePlayer.closeScreen();
else
mc.displayInGameMenu();
}
//In game!