// Path: HexBoxServer/src/com/hexabeast/hexboxserver/NInputRightLeft.java
// public class NInputRightLeft {
// 	public boolean right;
// 	public boolean pressed;
// 	public int id;
// 	
// 	public NInputRightLeft(){}
// 	
// 	public NInputRightLeft(boolean direction, boolean press)
// 	{
// 		right = direction;
// 		pressed = press;
// 	}
// }
// 
// Path: HexBoxServer/src/com/hexabeast/hexboxserver/NInputUpDown.java
// public class NInputUpDown {
// 	public boolean up;
// 	public boolean pressed;
// 	public int id;
// 	
// 	public NInputUpDown(){}
// 	
// 	public NInputUpDown(boolean direction, boolean press)
// 	{
// 		up = direction;
// 		pressed = press;
// 	}
// }
// 
// Path: HexBoxServer/src/com/hexabeast/hexboxserver/NInputUpdate.java
// public class NInputUpdate {
// 	
// 	public NInputUpdate()
// 	{
// 		
// 	}
// 	
// 	public int id;
// 	
// 	public boolean Q;
// 	public boolean S;
// 	public boolean D;
// 	public boolean Z;
// 	
// 	//public boolean A;
// 	
// 	public boolean Left;
// 	public boolean Right;
// 	
// 	public boolean Space;
// 	
// 	public Vector2 mousePos;
// }
// 
// Path: HexBoxServer/src/com/hexabeast/hexboxserver/Nclick.java
// public class Nclick {
// 	public int id;
// 	public boolean right;
// 	public boolean left;
// 	public boolean jump;
// 	public boolean hook;
// }


import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.InputProcessor;
import com.hexabeast.hexboxserver.NInputRightLeft;
import com.hexabeast.hexboxserver.NInputUpDown;
import com.hexabeast.hexboxserver.NInputUpdate;
import com.hexabeast.hexboxserver.Nclick;
	@Override
	public boolean keyDown(int keycode) 
	{
		boolean CHEAT = false;
		
		if(Main.ingame)
		{
			if(Main.game.chatEnabled)
			{
				if(keycode == Keys.ENTER && !Main.pause)
				{
					Main.game.chat.addMessage(Main.game.chat.inputField.getText());
					Main.game.chatEnabled = false;
				}
			}
			else
			{
				if(!Main.pause)
				{
					if(keycode == HKeys.Q)
					{
						tomiddleOrAPressed = true;
					}
					else if(keycode == HKeys.A)
					{
						if(NetworkManager.instance.online)NetworkManager.instance.sendTCP(new NInputRightLeft(false,true));
						Q = true;
					}
					else if(keycode == HKeys.W)
					{
// Path: HexBoxServer/src/com/hexabeast/hexboxserver/NInputRightLeft.java
// public class NInputRightLeft {
// 	public boolean right;
// 	public boolean pressed;
// 	public int id;
// 	
// 	public NInputRightLeft(){}
// 	
// 	public NInputRightLeft(boolean direction, boolean press)
// 	{
// 		right = direction;
// 		pressed = press;
// 	}
// }
// 
// Path: HexBoxServer/src/com/hexabeast/hexboxserver/NInputUpDown.java
// public class NInputUpDown {
// 	public boolean up;
// 	public boolean pressed;
// 	public int id;
// 	
// 	public NInputUpDown(){}
// 	
// 	public NInputUpDown(boolean direction, boolean press)
// 	{
// 		up = direction;
// 		pressed = press;
// 	}
// }
// 
// Path: HexBoxServer/src/com/hexabeast/hexboxserver/NInputUpdate.java
// public class NInputUpdate {
// 	
// 	public NInputUpdate()
// 	{
// 		
// 	}
// 	
// 	public int id;
// 	
// 	public boolean Q;
// 	public boolean S;
// 	public boolean D;
// 	public boolean Z;
// 	
// 	//public boolean A;
// 	
// 	public boolean Left;
// 	public boolean Right;
// 	
// 	public boolean Space;
// 	
// 	public Vector2 mousePos;
// }
// 
// Path: HexBoxServer/src/com/hexabeast/hexboxserver/Nclick.java
// public class Nclick {
// 	public int id;
// 	public boolean right;
// 	public boolean left;
// 	public boolean jump;
// 	public boolean hook;
// }


// Path: core/src/com/hexabeast/sandbox/Inputs.java
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.InputProcessor;
import com.hexabeast.hexboxserver.NInputRightLeft;
import com.hexabeast.hexboxserver.NInputUpDown;
import com.hexabeast.hexboxserver.NInputUpdate;
import com.hexabeast.hexboxserver.Nclick;

	@Override
	public boolean keyDown(int keycode) 
	{
		boolean CHEAT = false;
		
		if(Main.ingame)
		{
			if(Main.game.chatEnabled)
			{
				if(keycode == Keys.ENTER && !Main.pause)
				{
					Main.game.chat.addMessage(Main.game.chat.inputField.getText());
					Main.game.chatEnabled = false;
				}
			}
			else
			{
				if(!Main.pause)
				{
					if(keycode == HKeys.Q)
					{
						tomiddleOrAPressed = true;
					}
					else if(keycode == HKeys.A)
					{
						if(NetworkManager.instance.online)NetworkManager.instance.sendTCP(new NInputRightLeft(false,true));
						Q = true;
					}
					else if(keycode == HKeys.W)
					{
						if(NetworkManager.instance.online)NetworkManager.instance.sendTCP(new NInputUpDown(true,true));