package u;

import java.util.Objects;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.controllers.Controller;
import com.badlogic.gdx.controllers.ControllerListener;
import com.badlogic.gdx.controllers.Controllers;
import com.ld57.game.ddd;

import Global.Global;

public class UIDe implements ControllerListener {

	// private static boolean _isUsingKeyboard;
	// private static boolean _isUsingMouse;
	// private static boolean _isUsingController;
	private String _name;
	private String _id;

	public static Controller controller;
	public static Controller controller2;
	public static Controller controller3;
	public static Controller controller4;
	public static Controller controller5;
	public static Controller controller6;
	public static Controller controller7;
	public static Controller controller8;
	public static Controller controller9;
	public static Controller controller10;
	public static Controller controller11;
	public static Controller controller12;
	public static Controller controller13;
	public static Controller controller14;
	public static Controller controller15;
	public static Controller controller16;
	public static Controller controller17;
	public static Controller controller18;
	public static Controller controller19;
	public static Controller controller20;
	public static Controller controller21;
	public static Controller controller22;
	public static Controller controller23;
	public static Controller controller24;
	public static Controller controller25;
	public static Controller controller26;
	public static Controller controller27;
	public static Controller controller28;
	public static Controller controller29;
	public static Controller controller30;
	public static Controller controller31;
	public static Controller controller32;

	private static boolean bLd;// Button Left Down
	private static boolean bRd;// Button Right Down
	private static boolean bUd;// Button Up Down
	private static boolean bDd;// Button Down Down
	private static boolean bSeld;// Button Select Down
	private static boolean bStd;// Button Start Down
	private static boolean bLJBd;// Button Left Joystick Button Down
	private static boolean bRJBd;// Button Right Joystick Button Down
	private static boolean bLTd;// Button Left Trigger Down
	private static boolean bRTd;// Button Right Trigger Down
	private static boolean bLp;// Button Left Pressed
	private static boolean bRp;// Button Right Pressed
	private static boolean bUp;// Button Up Pressed
	private static boolean bDp;// Button Down Pressed
	private static boolean bSelp;// Button Select Pressed
	private static boolean bStp;// Button Start Pressed
	private static boolean bLTp;// Button Left Trigger Pressed
	private static boolean bRTp;// Button Right Trigger Pressed
	private static boolean bLJBp;// Button Left Joystick Button Pressed
	private static boolean bRJBp;// Button Right Joystick Button Pressed
	private static boolean LScLd;// controller Left Down
	private static boolean LScLp;// controller Left pressed
	private static boolean LScRd;// controller Right Down
	private static boolean LScRp;// controller Right pressed
	private static boolean LScUd;// controller Up Down
	private static boolean LScUp;// controller Up Pressed
	private static boolean LScDd;// controller Down Down
	private static boolean LScDp;// controller Down Pressed
	private static boolean RScLd;// controller Left Down
	private static boolean RScLp;// controller Left pressed
	private static boolean RScRd;// controller Right Down
	private static boolean RScRp;// controller Right pressed
	private static boolean RScUd;// controller Up Down
	private static boolean RScUp;// controller Up Pressed
	private static boolean RScDd;// controller Down Down
	private static boolean RScDp;// controller Down Pressed
	private static boolean b_5p;// controller Down Pressed
	private static boolean b_5d;// controller Down down
	private static boolean b_11p;// controller Down Pressed
	private static boolean b_11d;// controller Down down
	private static boolean b_12p;// controller Down Pressed
	private static boolean b_12d;// controller Down down
	private static boolean b_13p;// controller Down Pressed
	private static boolean b_13d;// controller Down down
	private static boolean b_14p;// controller Down Pressed
	private static boolean b_14d;// controller Down down
	private static boolean bLPd;// Button Left Paddle Down
	private static boolean bLPp;// Button Left Paddle Pressed
	private static boolean bRPd;// Button Right Paddle Down
	private static boolean bRPp;// Button Right Paddle Pressed
	private static String[] ControllerOneButtons = { "bLd", "bRd", "bUd", "bDd", "bSeld", "bStd", "bLJBd", "bRJBd", "bLTd", "bRTd", "bLTd", "bLp", "bRp", "bUp",
			"bDp", "bSelp", "bStp", "bLTp", "bRTp", "bLJBp", "bRJBp", "bLTd", "bLTd", "bLTd", "LScLd", "LScLp", "LScRd", "LScRp", "LScLd", "LScRd", "LScRp", "LScUd",
			"LScUp", "LScDd", "LScDp", "RScLd", "RScLp", "RScRd", "RScRp", "RScLd", "RScRd", "RScRp", "RScUd", "RScUp", "RScDd", "RScDp", "b_5p", "b_5d", "b_11p",
			"b_11d", "b_12p", "b_12d", "b_13p", "b_13d", "b_14p", "b_14d", "bLPd", "bLPp", "bRPd", "bRPp" };

	private static boolean bLd2;
	private static boolean bRd2;
	private static boolean bUd2;
	private static boolean bDd2;
	private static boolean bSeld2;
	private static boolean bStd2;
	private static boolean bLJBd2;
	private static boolean bRJBd2;
	private static boolean bLTd2;
	private static boolean bRTd2;
	private static boolean bLp2;
	private static boolean bRp2;
	private static boolean bUp2;
	private static boolean bDp2;
	private static boolean bSelp2;
	private static boolean bStp2;
	private static boolean bLTp2;
	private static boolean bRTp2;
	private static boolean bLJBp2;
	private static boolean bRJBp2;
	private static boolean LScLd2;// controller Left Down
	private static boolean LScLp2;// controller Left pressed
	private static boolean LScRd2;// controller Right Down
	private static boolean LScRp2;// controller Right pressed
	private static boolean LScUd2;// controller Up Down
	private static boolean LScUp2;// controller Up Pressed
	private static boolean LScDd2;// controller Down Down
	private static boolean LScDp2;// controller Down Pressed
	private static boolean RScLd2;// controller Left Down
	private static boolean RScLp2;// controller Left pressed
	private static boolean RScRd2;// controller Right Down
	private static boolean RScRp2;// controller Right pressed
	private static boolean RScUd2;// controller Up Down
	private static boolean RScUp2;// controller Up Pressed
	private static boolean RScDd2;// controller Down Down
	private static boolean RScDp2;// controller Down Pressed
	private static boolean b_5p2;// controller Down Pressed
	private static boolean b_5d2;// controller Down down
	private static boolean b_11p2;// controller Down Pressed
	private static boolean b_11d2;// controller Down down
	private static boolean b_12p2;// controller Down Pressed
	private static boolean b_12d2;// controller Down down
	private static boolean b_13p2;// controller Down Pressed
	private static boolean b_13d2;// controller Down down
	private static boolean b_14p2;// controller Down Pressed
	private static boolean b_14d2;// controller Down down
	private static boolean bLPd2;
	private static boolean bLPp2;
	private static boolean bRPd2;
	private static boolean bRPp2;
	private static String[] ControllerTwoButtons = { "bLd2", "bRd2", "bUd2", "bDd2", "bSeld2", "bStd2", "bLJBd2", "bRJBd2", "bLTd2", "bRTd2", "bLTd2", "bLp2",
			"bRp2", "bUp2", "bDp2", "bSelp2", "bStp2", "bLTp2", "bRTp2", "bLJBp2", "bRJBp2", "bLTd2", "bLTd2", "bLTd2", "LScLd2", "LScLp2", "LScRd2", "LScRp2",
			"LScLd2", "LScRd2", "LScRp2", "LScUd2", "LScUp2", "LScDd2", "LScDp2", "RScLd2", "RScLp2", "RScRd2", "RScRp2", "RScLd2", "RScRd2", "RScRp2", "RScUd2",
			"RScUp2", "RScDd2", "RScDp2", "b_5p2", "b_5d2", "b_11p2", "b_11d2", "b_12p2", "b_12d2", "b_13p2", "b_13d2", "b_14p2", "b_14d2", "bLPd2", "bLPp2",
			"bRPd2", "bRPp2" };

	private static boolean bLd3;
	private static boolean bRd3;
	private static boolean bUd3;
	private static boolean bDd3;
	private static boolean bSeld3;
	private static boolean bStd3;
	private static boolean bLJBd3;
	private static boolean bRJBd3;
	private static boolean bLTd3;
	private static boolean bRTd3;
	private static boolean bLp3;
	private static boolean bRp3;
	private static boolean bUp3;
	private static boolean bDp3;
	private static boolean bSelp3;
	private static boolean bStp3;
	private static boolean bLTp3;
	private static boolean bRTp3;
	private static boolean bLJBp3;
	private static boolean bRJBp3;
	private static boolean LScLd3;// controller Left Down
	private static boolean LScLp3;// controller Left pressed
	private static boolean LScRd3;// controller Right Down
	private static boolean LScRp3;// controller Right pressed
	private static boolean LScUd3;// controller Up Down
	private static boolean LScUp3;// controller Up Pressed
	private static boolean LScDd3;// controller Down Down
	private static boolean LScDp3;// controller Down Pressed
	private static boolean RScLd3;// controller Left Down
	private static boolean RScLp3;// controller Left pressed
	private static boolean RScRd3;// controller Right Down
	private static boolean RScRp3;// controller Right pressed
	private static boolean RScUd3;// controller Up Down
	private static boolean RScUp3;// controller Up Pressed
	private static boolean RScDd3;// controller Down Down
	private static boolean RScDp3;// controller Down Pressed
	private static boolean b_5p3;// controller Down Pressed
	private static boolean b_5d3;// controller Down down
	private static boolean b_11p3;// controller Down Pressed
	private static boolean b_11d3;// controller Down down
	private static boolean b_12p3;// controller Down Pressed
	private static boolean b_12d3;// controller Down down
	private static boolean b_13p3;// controller Down Pressed
	private static boolean b_13d3;// controller Down down
	private static boolean b_14p3;// controller Down Pressed
	private static boolean b_14d3;// controller Down down
	private static boolean bLPd3;
	private static boolean bLPp3;
	private static boolean bRPd3;
	private static boolean bRPp3;
	private static String[] ControllerThreeButtons = { "bLd3", "bRd3", "bUd3", "bDd3", "bSeld3", "bStd3", "bLJBd3", "bRJBd3", "bLTd3", "bRTd3", "bLTd3", "bLp3",
			"bRp3", "bUp3", "bDp3", "bSelp3", "bStp3", "bLTp3", "bRTp3", "bLJBp3", "bRJBp3", "bLTd3", "bLTd3", "bLTd3", "LScLd3", "LScLp3", "LScRd3", "LScRp3",
			"LScLd3", "LScRd3", "LScRp3", "LScUd3", "LScUp3", "LScDd3", "LScDp3", "RScLd3", "RScLp3", "RScRd3", "RScRp3", "RScLd3", "RScRd3", "RScRp3", "RScUd3",
			"RScUp3", "RScDd3", "RScDp3", "b_5p3", "b_5d3", "b_11p3", "b_11d3", "b_12p3", "b_12d3", "b_13p3", "b_13d3", "b_14p3", "b_14d3", "bLPd3", "bLPp3",
			"bRPd3", "bRPp3" };

	private static boolean bLd4;
	private static boolean bRd4;
	private static boolean bUd4;
	private static boolean bDd4;
	private static boolean bSeld4;
	private static boolean bStd4;
	private static boolean bLJBd4;
	private static boolean bRJBd4;
	private static boolean bLTd4;
	private static boolean bRTd4;
	private static boolean bLp4;
	private static boolean bRp4;
	private static boolean bUp4;
	private static boolean bDp4;
	private static boolean bSelp4;
	private static boolean bStp4;
	private static boolean bLTp4;
	private static boolean bRTp4;
	private static boolean bLJBp4;
	private static boolean bRJBp4;
	private static boolean LScLd4;// controller Left Down
	private static boolean LScLp4;// controller Left pressed
	private static boolean LScRd4;// controller Right Down
	private static boolean LScRp4;// controller Right pressed
	private static boolean LScUd4;// controller Up Down
	private static boolean LScUp4;// controller Up Pressed
	private static boolean LScDd4;// controller Down Down
	private static boolean LScDp4;// controller Down Pressed
	private static boolean RScLd4;// controller Left Down
	private static boolean RScLp4;// controller Left pressed
	private static boolean RScRd4;// controller Right Down
	private static boolean RScRp4;// controller Right pressed
	private static boolean RScUd4;// controller Up Down
	private static boolean RScUp4;// controller Up Pressed
	private static boolean RScDd4;// controller Down Down
	private static boolean RScDp4;// controller Down Pressed
	private static boolean b_5p4;// controller Down Pressed
	private static boolean b_5d4;// controller Down down
	private static boolean b_11p4;// controller Down Pressed
	private static boolean b_11d4;// controller Down down
	private static boolean b_12p4;// controller Down Pressed
	private static boolean b_12d4;// controller Down down
	private static boolean b_13p4;// controller Down Pressed
	private static boolean b_13d4;// controller Down down
	private static boolean b_14p4;// controller Down Pressed
	private static boolean b_14d4;// controller Down down
	private static boolean bLPd4;
	private static boolean bLPp4;
	private static boolean bRPd4;
	private static boolean bRPp4;
	private static String[] ControllerFourButtons = { "bLd4", "bRd4", "bUd4", "bDd4", "bSeld4", "bStd4", "bLJBd4", "bRJBd4", "bLTd4", "bRTd4", "bLTd4", "bLp4",
			"bRp4", "bUp4", "bDp4", "bSelp4", "bStp4", "bLTp4", "bRTp4", "bLJBp4", "bRJBp4", "bLTd4", "bLTd4", "bLTd4", "LScLd4", "LScLp4", "LScRd4", "LScRp4",
			"LScLd4", "LScRd4", "LScRp4", "LScUd4", "LScUp4", "LScDd4", "LScDp4", "RScLd4", "RScLp4", "RScRd4", "RScRp4", "RScLd4", "RScRd4", "RScRp4", "RScUd4",
			"RScUp4", "RScDd4", "RScDp4", "b_5p4", "b_5d4", "b_11p4", "b_11d4", "b_12p4", "b_12d4", "b_13p4", "b_13d4", "b_14p4", "b_14d4", "bLPd4", "bLPp4",
			"bRPd4", "bRPp4" };

	private static boolean bLd5;
	private static boolean bRd5;
	private static boolean bUd5;
	private static boolean bDd5;
	private static boolean bSeld5;
	private static boolean bStd5;
	private static boolean bLJBd5;
	private static boolean bRJBd5;
	private static boolean bLTd5;
	private static boolean bRTd5;
	private static boolean bLp5;
	private static boolean bRp5;
	private static boolean bUp5;
	private static boolean bDp5;
	private static boolean bSelp5;
	private static boolean bStp5;
	private static boolean bLTp5;
	private static boolean bRTp5;
	private static boolean bLJBp5;
	private static boolean bRJBp5;
	private static boolean LScLd5;// controller Left Down
	private static boolean LScLp5;// controller Left pressed
	private static boolean LScRd5;// controller Right Down
	private static boolean LScRp5;// controller Right pressed
	private static boolean LScUd5;// controller Up Down
	private static boolean LScUp5;// controller Up Pressed
	private static boolean LScDd5;// controller Down Down
	private static boolean LScDp5;// controller Down Pressed
	private static boolean RScLd5;// controller Left Down
	private static boolean RScLp5;// controller Left pressed
	private static boolean RScRd5;// controller Right Down
	private static boolean RScRp5;// controller Right pressed
	private static boolean RScUd5;// controller Up Down
	private static boolean RScUp5;// controller Up Pressed
	private static boolean RScDd5;// controller Down Down
	private static boolean RScDp5;// controller Down Pressed
	private static boolean b_5p5;// controller Down Pressed
	private static boolean b_5d5;// controller Down down
	private static boolean b_11p5;// controller Down Pressed
	private static boolean b_11d5;// controller Down down
	private static boolean b_12p5;// controller Down Pressed
	private static boolean b_12d5;// controller Down down
	private static boolean b_13p5;// controller Down Pressed
	private static boolean b_13d5;// controller Down down
	private static boolean b_14p5;// controller Down Pressed
	private static boolean b_14d5;// controller Down down
	private static boolean bLPd5;
	private static boolean bLPp5;
	private static boolean bRPd5;
	private static boolean bRPp5;
	private static String[] ControllerFiveButtons = { "bLd5", "bRd5", "bUd5", "bDd5", "bSeld5", "bStd5", "bLJBd5", "bRJBd5", "bLTd5", "bRTd5", "bLTd5", "bLp5",
			"bRp5", "bUp5", "bDp5", "bSelp5", "bStp5", "bLTp5", "bRTp5", "bLJBp5", "bRJBp5", "bLTd5", "bLTd5", "bLTd5", "LScLd5", "LScLp5", "LScRd5", "LScRp5",
			"LScLd5", "LScRd5", "LScRp5", "LScUd5", "LScUp5", "LScDd5", "LScDp5", "RScLd5", "RScLp5", "RScRd5", "RScRp5", "RScLd5", "RScRd5", "RScRp5", "RScUd5",
			"RScUp5", "RScDd5", "RScDp5", "b_5p5", "b_5d5", "b_11p5", "b_11d5", "b_12p5", "b_12d5", "b_13p5", "b_13d5", "b_14p5", "b_14d5", "bLPd5", "bLPp5",
			"bRPd5", "bRPp5" };

	private static boolean bLd6;
	private static boolean bRd6;
	private static boolean bUd6;
	private static boolean bDd6;
	private static boolean bSeld6;
	private static boolean bStd6;
	private static boolean bLJBd6;
	private static boolean bRJBd6;
	private static boolean bLTd6;
	private static boolean bRTd6;
	private static boolean bLp6;
	private static boolean bRp6;
	private static boolean bUp6;
	private static boolean bDp6;
	private static boolean bSelp6;
	private static boolean bStp6;
	private static boolean bLTp6;
	private static boolean bRTp6;
	private static boolean bLJBp6;
	private static boolean bRJBp6;
	private static boolean LScLd6;// controller Left Down
	private static boolean LScLp6;// controller Left pressed
	private static boolean LScRd6;// controller Right Down
	private static boolean LScRp6;// controller Right pressed
	private static boolean LScUd6;// controller Up Down
	private static boolean LScUp6;// controller Up Pressed
	private static boolean LScDd6;// controller Down Down
	private static boolean LScDp6;// controller Down Pressed
	private static boolean RScLd6;// controller Left Down
	private static boolean RScLp6;// controller Left pressed
	private static boolean RScRd6;// controller Right Down
	private static boolean RScRp6;// controller Right pressed
	private static boolean RScUd6;// controller Up Down
	private static boolean RScUp6;// controller Up Pressed
	private static boolean RScDd6;// controller Down Down
	private static boolean RScDp6;// controller Down Pressed
	private static boolean b_5p6;// controller Down Pressed
	private static boolean b_5d6;// controller Down down
	private static boolean b_11p6;// controller Down Pressed
	private static boolean b_11d6;// controller Down down
	private static boolean b_12p6;// controller Down Pressed
	private static boolean b_12d6;// controller Down down
	private static boolean b_13p6;// controller Down Pressed
	private static boolean b_13d6;// controller Down down
	private static boolean b_14p6;// controller Down Pressed
	private static boolean b_14d6;// controller Down down
	private static boolean bLPd6;
	private static boolean bLPp6;
	private static boolean bRPd6;
	private static boolean bRPp6;
	private static String[] ControllerSixButtons = { "bLd6", "bRd6", "bUd6", "bDd6", "bSeld6", "bStd6", "bLJBd6", "bRJBd6", "bLTd6", "bRTd6", "bLTd6", "bLp6",
			"bRp6", "bUp6", "bDp6", "bSelp6", "bStp6", "bLTp6", "bRTp6", "bLJBp6", "bRJBp6", "bLTd6", "bLTd6", "bLTd6", "LScLd6", "LScLp6", "LScRd6", "LScRp6",
			"LScLd6", "LScRd6", "LScRp6", "LScUd6", "LScUp6", "LScDd6", "LScDp6", "RScLd6", "RScLp6", "RScRd6", "RScRp6", "RScLd6", "RScRd6", "RScRp6", "RScUd6",
			"RScUp6", "RScDd6", "RScDp6", "b_5p6", "b_5d6", "b_11p6", "b_11d6", "b_12p6", "b_12d6", "b_13p6", "b_13d6", "b_14p6", "b_14d6", "bLPd6", "bLPp6",
			"bRPd6", "bRPp6" };

	private static boolean bLd7;
	private static boolean bRd7;
	private static boolean bUd7;
	private static boolean bDd7;
	private static boolean bSeld7;
	private static boolean bStd7;
	private static boolean bLJBd7;
	private static boolean bRJBd7;
	private static boolean bLTd7;
	private static boolean bRTd7;
	private static boolean bLp7;
	private static boolean bRp7;
	private static boolean bUp7;
	private static boolean bDp7;
	private static boolean bSelp7;
	private static boolean bStp7;
	private static boolean bLTp7;
	private static boolean bRTp7;
	private static boolean bLJBp7;
	private static boolean bRJBp7;
	private static boolean LScLd7;// controller Left Down
	private static boolean LScLp7;// controller Left pressed
	private static boolean LScRd7;// controller Right Down
	private static boolean LScRp7;// controller Right pressed
	private static boolean LScUd7;// controller Up Down
	private static boolean LScUp7;// controller Up Pressed
	private static boolean LScDd7;// controller Down Down
	private static boolean LScDp7;// controller Down Pressed
	private static boolean RScLd7;// controller Left Down
	private static boolean RScLp7;// controller Left pressed
	private static boolean RScRd7;// controller Right Down
	private static boolean RScRp7;// controller Right pressed
	private static boolean RScUd7;// controller Up Down
	private static boolean RScUp7;// controller Up Pressed
	private static boolean RScDd7;// controller Down Down
	private static boolean RScDp7;// controller Down Pressed
	private static boolean b_5p7;// controller Down Pressed
	private static boolean b_5d7;// controller Down down
	private static boolean b_11p7;// controller Down Pressed
	private static boolean b_11d7;// controller Down down
	private static boolean b_12p7;// controller Down Pressed
	private static boolean b_12d7;// controller Down down
	private static boolean b_13p7;// controller Down Pressed
	private static boolean b_13d7;// controller Down down
	private static boolean b_14p7;// controller Down Pressed
	private static boolean b_14d7;// controller Down down
	private static boolean bLPd7;
	private static boolean bLPp7;
	private static boolean bRPd7;
	private static boolean bRPp7;
	private static String[] ControllerSevenButtons = { "bLd7", "bRd7", "bUd7", "bDd7", "bSeld7", "bStd7", "bLJBd7", "bRJBd7", "bLTd7", "bRTd7", "bLTd7", "bLp7",
			"bRp7", "bUp7", "bDp7", "bSelp7", "bStp7", "bLTp7", "bRTp7", "bLJBp7", "bRJBp7", "bLTd7", "bLTd7", "bLTd7", "LScLd7", "LScLp7", "LScRd7", "LScRp7",
			"LScLd7", "LScRd7", "LScRp7", "LScUd7", "LScUp7", "LScDd7", "LScDp7", "RScLd7", "RScLp7", "RScRd7", "RScRp7", "RScLd7", "RScRd7", "RScRp7", "RScUd7",
			"RScUp7", "RScDd7", "RScDp7", "b_5p7", "b_5d7", "b_11p7", "b_11d7", "b_12p7", "b_12d7", "b_13p7", "b_13d7", "b_14p7", "b_14d7", "bLPd7", "bLPp7",
			"bRPd7", "bRPp7" };

	private static boolean bLd8;
	private static boolean bRd8;
	private static boolean bUd8;
	private static boolean bDd8;
	private static boolean bSeld8;
	private static boolean bStd8;
	private static boolean bLJBd8;
	private static boolean bRJBd8;
	private static boolean bLTd8;
	private static boolean bRTd8;
	private static boolean bLp8;
	private static boolean bRp8;
	private static boolean bUp8;
	private static boolean bDp8;
	private static boolean bSelp8;
	private static boolean bStp8;
	private static boolean bLTp8;
	private static boolean bRTp8;
	private static boolean bLJBp8;
	private static boolean bRJBp8;
	private static boolean LScLd8;// controller Left Down
	private static boolean LScLp8;// controller Left pressed
	private static boolean LScRd8;// controller Right Down
	private static boolean LScRp8;// controller Right pressed
	private static boolean LScUd8;// controller Up Down
	private static boolean LScUp8;// controller Up Pressed
	private static boolean LScDd8;// controller Down Down
	private static boolean LScDp8;// controller Down Pressed
	private static boolean RScLd8;// controller Left Down
	private static boolean RScLp8;// controller Left pressed
	private static boolean RScRd8;// controller Right Down
	private static boolean RScRp8;// controller Right pressed
	private static boolean RScUd8;// controller Up Down
	private static boolean RScUp8;// controller Up Pressed
	private static boolean RScDd8;// controller Down Down
	private static boolean RScDp8;// controller Down Pressed
	private static boolean b_5p8;// controller Down Pressed
	private static boolean b_5d8;// controller Down down
	private static boolean b_11p8;// controller Down Pressed
	private static boolean b_11d8;// controller Down down
	private static boolean b_12p8;// controller Down Pressed
	private static boolean b_12d8;// controller Down down
	private static boolean b_13p8;// controller Down Pressed
	private static boolean b_13d8;// controller Down down
	private static boolean b_14p8;// controller Down Pressed
	private static boolean b_14d8;// controller Down down
	private static boolean bLPd8;
	private static boolean bLPp8;
	private static boolean bRPd8;
	private static boolean bRPp8;
	private static String[] ControllerEightButtons = { "bLd8", "bRd8", "bUd8", "bDd8", "bSeld8", "bStd8", "bLJBd8", "bRJBd8", "bLTd8", "bRTd8", "bLTd8", "bLp8",
			"bRp8", "bUp8", "bDp8", "bSelp8", "bStp8", "bLTp8", "bRTp8", "bLJBp8", "bRJBp8", "bLTd8", "bLTd8", "bLTd8", "LScLd8", "LScLp8", "LScRd8", "LScRp8",
			"LScLd8", "LScRd8", "LScRp8", "LScUd8", "LScUp8", "LScDd8", "LScDp8", "RScLd8", "RScLp8", "RScRd8", "RScRp8", "RScLd8", "RScRd8", "RScRp8", "RScUd8",
			"RScUp8", "RScDd8", "RScDp8", "b_5p8", "b_5d8", "b_11p8", "b_11d8", "b_12p8", "b_12d8", "b_13p8", "b_13d8", "b_14p8", "b_14d8", "bLPd8", "bLPp8",
			"bRPd8", "bRPp8" };

	private static boolean bLd9;
	private static boolean bRd9;
	private static boolean bUd9;
	private static boolean bDd9;
	private static boolean bSeld9;
	private static boolean bStd9;
	private static boolean bLJBd9;
	private static boolean bRJBd9;
	private static boolean bLTd9;
	private static boolean bRTd9;
	private static boolean bLp9;
	private static boolean bRp9;
	private static boolean bUp9;
	private static boolean bDp9;
	private static boolean bSelp9;
	private static boolean bStp9;
	private static boolean bLTp9;
	private static boolean bRTp9;
	private static boolean bLJBp9;
	private static boolean bRJBp9;
	private static boolean LScLd9;// controller Left Down
	private static boolean LScLp9;// controller Left pressed
	private static boolean LScRd9;// controller Right Down
	private static boolean LScRp9;// controller Right pressed
	private static boolean LScUd9;// controller Up Down
	private static boolean LScUp9;// controller Up Pressed
	private static boolean LScDd9;// controller Down Down
	private static boolean LScDp9;// controller Down Pressed
	private static boolean RScLd9;// controller Left Down
	private static boolean RScLp9;// controller Left pressed
	private static boolean RScRd9;// controller Right Down
	private static boolean RScRp9;// controller Right pressed
	private static boolean RScUd9;// controller Up Down
	private static boolean RScUp9;// controller Up Pressed
	private static boolean RScDd9;// controller Down Down
	private static boolean RScDp9;// controller Down Pressed
	private static boolean b_5p9;// controller Down Pressed
	private static boolean b_5d9;// controller Down down
	private static boolean b_11p9;// controller Down Pressed
	private static boolean b_11d9;// controller Down down
	private static boolean b_12p9;// controller Down Pressed
	private static boolean b_12d9;// controller Down down
	private static boolean b_13p9;// controller Down Pressed
	private static boolean b_13d9;// controller Down down
	private static boolean b_14p9;// controller Down Pressed
	private static boolean b_14d9;// controller Down down
	private static boolean bLPd9;
	private static boolean bLPp9;
	private static boolean bRPd9;
	private static boolean bRPp9;
	private static String[] ControllerNineButtons = { "bLd9", "bRd9", "bUd9", "bDd9", "bSeld9", "bStd9", "bLJBd9", "bRJBd9", "bLTd9", "bRTd9", "bLTd9", "bLp9",
			"bRp9", "bUp9", "bDp9", "bSelp9", "bStp9", "bLTp9", "bRTp9", "bLJBp9", "bRJBp9", "bLTd9", "bLTd9", "bLTd9", "LScLd9", "LScLp9", "LScRd9", "LScRp9",
			"LScLd9", "LScRd9", "LScRp9", "LScUd9", "LScUp9", "LScDd9", "LScDp9", "RScLd9", "RScLp9", "RScRd9", "RScRp9", "RScLd9", "RScRd9", "RScRp9", "RScUd9",
			"RScUp9", "RScDd9", "RScDp9", "b_5p9", "b_5d9", "b_11p9", "b_11d9", "b_12p9", "b_12d9", "b_13p9", "b_13d9", "b_14p9", "b_14d9", "bLPd9", "bLPp9",
			"bRPd9", "bRPp9" };

	private static boolean bLd10;
	private static boolean bRd10;
	private static boolean bUd10;
	private static boolean bDd10;
	private static boolean bSeld10;
	private static boolean bStd10;
	private static boolean bLJBd10;
	private static boolean bRJBd10;
	private static boolean bLTd10;
	private static boolean bRTd10;
	private static boolean bLp10;
	private static boolean bRp10;
	private static boolean bUp10;
	private static boolean bDp10;
	private static boolean bSelp10;
	private static boolean bStp10;
	private static boolean bLTp10;
	private static boolean bRTp10;
	private static boolean bLJBp10;
	private static boolean bRJBp10;
	private static boolean LScLd10;// controller Left Down
	private static boolean LScLp10;// controller Left pressed
	private static boolean LScRd10;// controller Right Down
	private static boolean LScRp10;// controller Right pressed
	private static boolean LScUd10;// controller Up Down
	private static boolean LScUp10;// controller Up Pressed
	private static boolean LScDd10;// controller Down Down
	private static boolean LScDp10;// controller Down Pressed
	private static boolean RScLd10;// controller Left Down
	private static boolean RScLp10;// controller Left pressed
	private static boolean RScRd10;// controller Right Down
	private static boolean RScRp10;// controller Right pressed
	private static boolean RScUd10;// controller Up Down
	private static boolean RScUp10;// controller Up Pressed
	private static boolean RScDd10;// controller Down Down
	private static boolean RScDp10;// controller Down Pressed
	private static boolean b_5p10;// controller Down Pressed
	private static boolean b_5d10;// controller Down down
	private static boolean b_11p10;// controller Down Pressed
	private static boolean b_11d10;// controller Down down
	private static boolean b_12p10;// controller Down Pressed
	private static boolean b_12d10;// controller Down down
	private static boolean b_13p10;// controller Down Pressed
	private static boolean b_13d10;// controller Down down
	private static boolean b_14p10;// controller Down Pressed
	private static boolean b_14d10;// controller Down down
	private static boolean bLPd10;
	private static boolean bLPp10;
	private static boolean bRPd10;
	private static boolean bRPp10;
	private static String[] ControllerTenButtons = { "bLd10", "bRd10", "bUd10", "bDd10", "bSeld10", "bStd10", "bLJBd10", "bRJBd10", "bLTd10", "bRTd10", "bLTd10",
			"bLp10", "bRp10", "bUp10", "bDp10", "bSelp10", "bStp10", "bLTp10", "bRTp10", "bLJBp10", "bRJBp10", "bLTd10", "bLTd10", "bLTd10", "LScLd10", "LScLp10",
			"LScRd10", "LScRp10", "LScLd10", "LScRd10", "LScRp10", "LScUd10", "LScUp10", "LScDd10", "LScDp10", "RScLd10", "RScLp10", "RScRd10", "RScRp10", "RScLd10",
			"RScRd10", "RScRp10", "RScUd10", "RScUp10", "RScDd10", "RScDp10", "b_5p10", "b_5d10", "b_11p10", "b_11d10", "b_12p10", "b_12d10", "b_13p10", "b_13d10",
			"b_14p10", "b_14d10", "bLPd10", "bLPp10", "bRPd10", "bRPp10" };

	private static boolean bLd11;
	private static boolean bRd11;
	private static boolean bUd11;
	private static boolean bDd11;
	private static boolean bSeld11;
	private static boolean bStd11;
	private static boolean bLJBd11;
	private static boolean bRJBd11;
	private static boolean bLTd11;
	private static boolean bRTd11;
	private static boolean bLp11;
	private static boolean bRp11;
	private static boolean bUp11;
	private static boolean bDp11;
	private static boolean bSelp11;
	private static boolean bStp11;
	private static boolean bLTp11;
	private static boolean bRTp11;
	private static boolean bLJBp11;
	private static boolean bRJBp11;
	private static boolean LScLd11;// controller Left Down
	private static boolean LScLp11;// controller Left pressed
	private static boolean LScRd11;// controller Right Down
	private static boolean LScRp11;// controller Right pressed
	private static boolean LScUd11;// controller Up Down
	private static boolean LScUp11;// controller Up Pressed
	private static boolean LScDd11;// controller Down Down
	private static boolean LScDp11;// controller Down Pressed
	private static boolean RScLd11;// controller Left Down
	private static boolean RScLp11;// controller Left pressed
	private static boolean RScRd11;// controller Right Down
	private static boolean RScRp11;// controller Right pressed
	private static boolean RScUd11;// controller Up Down
	private static boolean RScUp11;// controller Up Pressed
	private static boolean RScDd11;// controller Down Down
	private static boolean RScDp11;// controller Down Pressed
	private static boolean b_5p11;// controller Down Pressed
	private static boolean b_5d11;// controller Down down
	private static boolean b_11p11;// controller Down Pressed
	private static boolean b_11d11;// controller Down down
	private static boolean b_12p11;// controller Down Pressed
	private static boolean b_12d11;// controller Down down
	private static boolean b_13p11;// controller Down Pressed
	private static boolean b_13d11;// controller Down down
	private static boolean b_14p11;// controller Down Pressed
	private static boolean b_14d11;// controller Down down
	private static boolean bLPd11;
	private static boolean bLPp11;
	private static boolean bRPd11;
	private static boolean bRPp11;
	private static String[] ControllerElevenButtons = { "bLd11", "bRd11", "bUd11", "bDd11", "bSeld11", "bStd11", "bLJBd11", "bRJBd11", "bLTd11", "bRTd11", "bLTd11",
			"bLp11", "bRp11", "bUp11", "bDp11", "bSelp11", "bStp11", "bLTp11", "bRTp11", "bLJBp11", "bRJBp11", "bLTd11", "bLTd11", "bLTd11", "LScLd11", "LScLp11",
			"LScRd11", "LScRp11", "LScLd11", "LScRd11", "LScRp11", "LScUd11", "LScUp11", "LScDd11", "LScDp11", "RScLd11", "RScLp11", "RScRd11", "RScRp11", "RScLd11",
			"RScRd11", "RScRp11", "RScUd11", "RScUp11", "RScDd11", "RScDp11", "b_5p11", "b_5d11", "b_11p11", "b_11d11", "b_12p11", "b_12d11", "b_13p11", "b_13d11",
			"b_14p11", "b_14d11", "bLPd11", "bLPp11", "bRPd11", "bRPp11" };

	private static boolean bLd12;
	private static boolean bRd12;
	private static boolean bUd12;
	private static boolean bDd12;
	private static boolean bSeld12;
	private static boolean bStd12;
	private static boolean bLJBd12;
	private static boolean bRJBd12;
	private static boolean bLTd12;
	private static boolean bRTd12;
	private static boolean bLp12;
	private static boolean bRp12;
	private static boolean bUp12;
	private static boolean bDp12;
	private static boolean bSelp12;
	private static boolean bStp12;
	private static boolean bLTp12;
	private static boolean bRTp12;
	private static boolean bLJBp12;
	private static boolean bRJBp12;
	private static boolean LScLd12;// controller Left Down
	private static boolean LScLp12;// controller Left pressed
	private static boolean LScRd12;// controller Right Down
	private static boolean LScRp12;// controller Right pressed
	private static boolean LScUd12;// controller Up Down
	private static boolean LScUp12;// controller Up Pressed
	private static boolean LScDd12;// controller Down Down
	private static boolean LScDp12;// controller Down Pressed
	private static boolean RScLd12;// controller Left Down
	private static boolean RScLp12;// controller Left pressed
	private static boolean RScRd12;// controller Right Down
	private static boolean RScRp12;// controller Right pressed
	private static boolean RScUd12;// controller Up Down
	private static boolean RScUp12;// controller Up Pressed
	private static boolean RScDd12;// controller Down Down
	private static boolean RScDp12;// controller Down Pressed
	private static boolean b_5p12;// controller Down Pressed
	private static boolean b_5d12;// controller Down down
	private static boolean b_11p12;// controller Down Pressed
	private static boolean b_11d12;// controller Down down
	private static boolean b_12p12;// controller Down Pressed
	private static boolean b_12d12;// controller Down down
	private static boolean b_13p12;// controller Down Pressed
	private static boolean b_13d12;// controller Down down
	private static boolean b_14p12;// controller Down Pressed
	private static boolean b_14d12;// controller Down down
	private static boolean bLPd12;
	private static boolean bLPp12;
	private static boolean bRPd12;
	private static boolean bRPp12;
	private static String[] ControllerTwelveButtons = { "bLd12", "bRd12", "bUd12", "bDd12", "bSeld12", "bStd12", "bLJBd12", "bRJBd12", "bLTd12", "bRTd12", "bLTd12",
			"bLp12", "bRp12", "bUp12", "bDp12", "bSelp12", "bStp12", "bLTp12", "bRTp12", "bLJBp12", "bRJBp12", "bLTd12", "bLTd12", "bLTd12", "LScLd12", "LScLp12",
			"LScRd12", "LScRp12", "LScLd12", "LScRd12", "LScRp12", "LScUd12", "LScUp12", "LScDd12", "LScDp12", "RScLd12", "RScLp12", "RScRd12", "RScRp12", "RScLd12",
			"RScRd12", "RScRp12", "RScUd12", "RScUp12", "RScDd12", "RScDp12", "b_5p12", "b_5d12", "b_11p12", "b_11d12", "b_12p12", "b_12d12", "b_13p12", "b_13d12",
			"b_14p12", "b_14d12", "bLPd12", "bLPp12", "bRPd12", "bRPp12" };

	private static boolean bLd13;
	private static boolean bRd13;
	private static boolean bUd13;
	private static boolean bDd13;
	private static boolean bSeld13;
	private static boolean bStd13;
	private static boolean bLJBd13;
	private static boolean bRJBd13;
	private static boolean bLTd13;
	private static boolean bRTd13;
	private static boolean bLp13;
	private static boolean bRp13;
	private static boolean bUp13;
	private static boolean bDp13;
	private static boolean bSelp13;
	private static boolean bStp13;
	private static boolean bLTp13;
	private static boolean bRTp13;
	private static boolean bLJBp13;
	private static boolean bRJBp13;
	private static boolean LScLd13;// controller Left Down
	private static boolean LScLp13;// controller Left pressed
	private static boolean LScRd13;// controller Right Down
	private static boolean LScRp13;// controller Right pressed
	private static boolean LScUd13;// controller Up Down
	private static boolean LScUp13;// controller Up Pressed
	private static boolean LScDd13;// controller Down Down
	private static boolean LScDp13;// controller Down Pressed
	private static boolean RScLd13;// controller Left Down
	private static boolean RScLp13;// controller Left pressed
	private static boolean RScRd13;// controller Right Down
	private static boolean RScRp13;// controller Right pressed
	private static boolean RScUd13;// controller Up Down
	private static boolean RScUp13;// controller Up Pressed
	private static boolean RScDd13;// controller Down Down
	private static boolean RScDp13;// controller Down Pressed
	private static boolean b_5p13;// controller Down Pressed
	private static boolean b_5d13;// controller Down down
	private static boolean b_11p13;// controller Down Pressed
	private static boolean b_11d13;// controller Down down
	private static boolean b_12p13;// controller Down Pressed
	private static boolean b_12d13;// controller Down down
	private static boolean b_13p13;// controller Down Pressed
	private static boolean b_13d13;// controller Down down
	private static boolean b_14p13;// controller Down Pressed
	private static boolean b_14d13;// controller Down down
	private static boolean bLPd13;
	private static boolean bLPp13;
	private static boolean bRPd13;
	private static boolean bRPp13;
	private static String[] ControllerThirteenButtons = { "bLd13", "bRd13", "bUd13", "bDd13", "bSeld13", "bStd13", "bLJBd13", "bRJBd13", "bLTd13", "bRTd13",
			"bLTd13", "bLp13", "bRp13", "bUp13", "bDp13", "bSelp13", "bStp13", "bLTp13", "bRTp13", "bLJBp13", "bRJBp13", "bLTd13", "bLTd13", "bLTd13", "LScLd13",
			"LScLp13", "LScRd13", "LScRp13", "LScLd13", "LScRd13", "LScRp13", "LScUd13", "LScUp13", "LScDd13", "LScDp13", "RScLd13", "RScLp13", "RScRd13", "RScRp13",
			"RScLd13", "RScRd13", "RScRp13", "RScUd13", "RScUp13", "RScDd13", "RScDp13", "b_5p13", "b_5d13", "b_11p13", "b_11d13", "b_12p13", "b_12d13", "b_13p13",
			"b_13d13", "b_14p13", "b_14d13", "bLPd13", "bLPp13", "bRPd13", "bRPp13" };

	private static boolean bLd14;
	private static boolean bRd14;
	private static boolean bUd14;
	private static boolean bDd14;
	private static boolean bSeld14;
	private static boolean bStd14;
	private static boolean bLJBd14;
	private static boolean bRJBd14;
	private static boolean bLTd14;
	private static boolean bRTd14;
	private static boolean bLp14;
	private static boolean bRp14;
	private static boolean bUp14;
	private static boolean bDp14;
	private static boolean bSelp14;
	private static boolean bStp14;
	private static boolean bLTp14;
	private static boolean bRTp14;
	private static boolean bLJBp14;
	private static boolean bRJBp14;
	private static boolean LScLd14;// controller Left Down
	private static boolean LScLp14;// controller Left pressed
	private static boolean LScRd14;// controller Right Down
	private static boolean LScRp14;// controller Right pressed
	private static boolean LScUd14;// controller Up Down
	private static boolean LScUp14;// controller Up Pressed
	private static boolean LScDd14;// controller Down Down
	private static boolean LScDp14;// controller Down Pressed
	private static boolean RScLd14;// controller Left Down
	private static boolean RScLp14;// controller Left pressed
	private static boolean RScRd14;// controller Right Down
	private static boolean RScRp14;// controller Right pressed
	private static boolean RScUd14;// controller Up Down
	private static boolean RScUp14;// controller Up Pressed
	private static boolean RScDd14;// controller Down Down
	private static boolean RScDp14;// controller Down Pressed
	private static boolean b_5p14;// controller Down Pressed
	private static boolean b_5d14;// controller Down down
	private static boolean b_11p14;// controller Down Pressed
	private static boolean b_11d14;// controller Down down
	private static boolean b_12p14;// controller Down Pressed
	private static boolean b_12d14;// controller Down down
	private static boolean b_13p14;// controller Down Pressed
	private static boolean b_13d14;// controller Down down
	private static boolean b_14p14;// controller Down Pressed
	private static boolean b_14d14;// controller Down down
	private static boolean bLPd14;
	private static boolean bLPp14;
	private static boolean bRPd14;
	private static boolean bRPp14;
	private static String[] ControllerFourteenButtons = { "bLd14", "bRd14", "bUd14", "bDd14", "bSeld14", "bStd14", "bLJBd14", "bRJBd14", "bLTd14", "bRTd14",
			"bLTd14", "bLp14", "bRp14", "bUp14", "bDp14", "bSelp14", "bStp14", "bLTp14", "bRTp14", "bLJBp14", "bRJBp14", "bLTd14", "bLTd14", "bLTd14", "LScLd14",
			"LScLp14", "LScRd14", "LScRp14", "LScLd14", "LScRd14", "LScRp14", "LScUd14", "LScUp14", "LScDd14", "LScDp14", "RScLd14", "RScLp14", "RScRd14", "RScRp14",
			"RScLd14", "RScRd14", "RScRp14", "RScUd14", "RScUp14", "RScDd14", "RScDp14", "b_5p14", "b_5d14", "b_11p14", "b_11d14", "b_12p14", "b_12d14", "b_13p14",
			"b_13d14", "b_14p14", "b_14d14", "bLPd14", "bLPp14", "bRPd14", "bRPp14" };

	private static boolean bLd15;
	private static boolean bRd15;
	private static boolean bUd15;
	private static boolean bDd15;
	private static boolean bSeld15;
	private static boolean bStd15;
	private static boolean bLJBd15;
	private static boolean bRJBd15;
	private static boolean bLTd15;
	private static boolean bRTd15;
	private static boolean bLp15;
	private static boolean bRp15;
	private static boolean bUp15;
	private static boolean bDp15;
	private static boolean bSelp15;
	private static boolean bStp15;
	private static boolean bLTp15;
	private static boolean bRTp15;
	private static boolean bLJBp15;
	private static boolean bRJBp15;
	private static boolean LScLd15;// controller Left Down
	private static boolean LScLp15;// controller Left pressed
	private static boolean LScRd15;// controller Right Down
	private static boolean LScRp15;// controller Right pressed
	private static boolean LScUd15;// controller Up Down
	private static boolean LScUp15;// controller Up Pressed
	private static boolean LScDd15;// controller Down Down
	private static boolean LScDp15;// controller Down Pressed
	private static boolean RScLd15;// controller Left Down
	private static boolean RScLp15;// controller Left pressed
	private static boolean RScRd15;// controller Right Down
	private static boolean RScRp15;// controller Right pressed
	private static boolean RScUd15;// controller Up Down
	private static boolean RScUp15;// controller Up Pressed
	private static boolean RScDd15;// controller Down Down
	private static boolean RScDp15;// controller Down Pressed
	private static boolean b_5p15;// controller Down Pressed
	private static boolean b_5d15;// controller Down down
	private static boolean b_11p15;// controller Down Pressed
	private static boolean b_11d15;// controller Down down
	private static boolean b_12p15;// controller Down Pressed
	private static boolean b_12d15;// controller Down down
	private static boolean b_13p15;// controller Down Pressed
	private static boolean b_13d15;// controller Down down
	private static boolean b_14p15;// controller Down Pressed
	private static boolean b_14d15;// controller Down down
	private static boolean bLPd15;
	private static boolean bLPp15;
	private static boolean bRPd15;
	private static boolean bRPp15;
	private static String[] ControllerFifteenButtons = { "bLd15", "bRd15", "bUd15", "bDd15", "bSeld15", "bStd15", "bLJBd15", "bRJBd15", "bLTd15", "bRTd15", "bLTd15",
			"bLp15", "bRp15", "bUp15", "bDp15", "bSelp15", "bStp15", "bLTp15", "bRTp15", "bLJBp15", "bRJBp15", "bLTd15", "bLTd15", "bLTd15", "LScLd15", "LScLp15",
			"LScRd15", "LScRp15", "LScLd15", "LScRd15", "LScRp15", "LScUd15", "LScUp15", "LScDd15", "LScDp15", "RScLd15", "RScLp15", "RScRd15", "RScRp15", "RScLd15",
			"RScRd15", "RScRp15", "RScUd15", "RScUp15", "RScDd15", "RScDp15", "b_5p15", "b_5d15", "b_11p15", "b_11d15", "b_12p15", "b_12d15", "b_13p15", "b_13d15",
			"b_14p15", "b_14d15", "bLPd15", "bLPp15", "bRPd15", "bRPp15" };

	private static boolean bLd16;
	private static boolean bRd16;
	private static boolean bUd16;
	private static boolean bDd16;
	private static boolean bSeld16;
	private static boolean bStd16;
	private static boolean bLJBd16;
	private static boolean bRJBd16;
	private static boolean bLTd16;
	private static boolean bRTd16;
	private static boolean bLp16;
	private static boolean bRp16;
	private static boolean bUp16;
	private static boolean bDp16;
	private static boolean bSelp16;
	private static boolean bStp16;
	private static boolean bLTp16;
	private static boolean bRTp16;
	private static boolean bLJBp16;
	private static boolean bRJBp16;
	private static boolean LScLd16;// controller Left Down
	private static boolean LScLp16;// controller Left pressed
	private static boolean LScRd16;// controller Right Down
	private static boolean LScRp16;// controller Right pressed
	private static boolean LScUd16;// controller Up Down
	private static boolean LScUp16;// controller Up Pressed
	private static boolean LScDd16;// controller Down Down
	private static boolean LScDp16;// controller Down Pressed
	private static boolean RScLd16;// controller Left Down
	private static boolean RScLp16;// controller Left pressed
	private static boolean RScRd16;// controller Right Down
	private static boolean RScRp16;// controller Right pressed
	private static boolean RScUd16;// controller Up Down
	private static boolean RScUp16;// controller Up Pressed
	private static boolean RScDd16;// controller Down Down
	private static boolean RScDp16;// controller Down Pressed
	private static boolean b_5p16;// controller Down Pressed
	private static boolean b_5d16;// controller Down down
	private static boolean b_11p16;// controller Down Pressed
	private static boolean b_11d16;// controller Down down
	private static boolean b_12p16;// controller Down Pressed
	private static boolean b_12d16;// controller Down down
	private static boolean b_13p16;// controller Down Pressed
	private static boolean b_13d16;// controller Down down
	private static boolean b_14p16;// controller Down Pressed
	private static boolean b_14d16;// controller Down down
	private static boolean bLPd16;
	private static boolean bLPp16;
	private static boolean bRPd16;
	private static boolean bRPp16;
	private static String[] ControllerSixteenButtons = { "bLd16", "bRd16", "bUd16", "bDd16", "bSeld16", "bStd16", "bLJBd16", "bRJBd16", "bLTd16", "bRTd16", "bLTd16",
			"bLp16", "bRp16", "bUp16", "bDp16", "bSelp16", "bStp16", "bLTp16", "bRTp16", "bLJBp16", "bRJBp16", "bLTd16", "bLTd16", "bLTd16", "LScLd16", "LScLp16",
			"LScRd16", "LScRp16", "LScLd16", "LScRd16", "LScRp16", "LScUd16", "LScUp16", "LScDd16", "LScDp16", "RScLd16", "RScLp16", "RScRd16", "RScRp16", "RScLd16",
			"RScRd16", "RScRp16", "RScUd16", "RScUp16", "RScDd16", "RScDp16", "b_5p16", "b_5d16", "b_11p16", "b_11d16", "b_12p16", "b_12d16", "b_13p16", "b_13d16",
			"b_14p16", "b_14d16", "bLPd16", "bLPp16", "bRPd16", "bRPp16" };

	private static boolean bLd17;
	private static boolean bRd17;
	private static boolean bUd17;
	private static boolean bDd17;
	private static boolean bSeld17;
	private static boolean bStd17;
	private static boolean bLJBd17;
	private static boolean bRJBd17;
	private static boolean bLTd17;
	private static boolean bRTd17;
	private static boolean bLp17;
	private static boolean bRp17;
	private static boolean bUp17;
	private static boolean bDp17;
	private static boolean bSelp17;
	private static boolean bStp17;
	private static boolean bLTp17;
	private static boolean bRTp17;
	private static boolean bLJBp17;
	private static boolean bRJBp17;
	private static boolean LScLd17;// controller Left Down
	private static boolean LScLp17;// controller Left pressed
	private static boolean LScRd17;// controller Right Down
	private static boolean LScRp17;// controller Right pressed
	private static boolean LScUd17;// controller Up Down
	private static boolean LScUp17;// controller Up Pressed
	private static boolean LScDd17;// controller Down Down
	private static boolean LScDp17;// controller Down Pressed
	private static boolean RScLd17;// controller Left Down
	private static boolean RScLp17;// controller Left pressed
	private static boolean RScRd17;// controller Right Down
	private static boolean RScRp17;// controller Right pressed
	private static boolean RScUd17;// controller Up Down
	private static boolean RScUp17;// controller Up Pressed
	private static boolean RScDd17;// controller Down Down
	private static boolean RScDp17;// controller Down Pressed
	private static boolean b_5p17;// controller Down Pressed
	private static boolean b_5d17;// controller Down down
	private static boolean b_11p17;// controller Down Pressed
	private static boolean b_11d17;// controller Down down
	private static boolean b_12p17;// controller Down Pressed
	private static boolean b_12d17;// controller Down down
	private static boolean b_13p17;// controller Down Pressed
	private static boolean b_13d17;// controller Down down
	private static boolean b_14p17;// controller Down Pressed
	private static boolean b_14d17;// controller Down down
	private static boolean bLPd17;
	private static boolean bLPp17;
	private static boolean bRPd17;
	private static boolean bRPp17;
	private static String[] ControllerSeventeenButtons = { "bLd17", "bRd17", "bUd17", "bDd17", "bSeld17", "bStd17", "bLJBd17", "bRJBd17", "bLTd17", "bRTd17",
			"bLTd17", "bLp17", "bRp17", "bUp17", "bDp17", "bSelp17", "bStp17", "bLTp17", "bRTp17", "bLJBp17", "bRJBp17", "bLTd17", "bLTd17", "bLTd17", "LScLd17",
			"LScLp17", "LScRd17", "LScRp17", "LScLd17", "LScRd17", "LScRp17", "LScUd17", "LScUp17", "LScDd17", "LScDp17", "RScLd17", "RScLp17", "RScRd17", "RScRp17",
			"RScLd17", "RScRd17", "RScRp17", "RScUd17", "RScUp17", "RScDd17", "RScDp17", "b_5p17", "b_5d17", "b_11p17", "b_11d17", "b_12p17", "b_12d17", "b_13p17",
			"b_13d17", "b_14p17", "b_14d17", "bLPd17", "bLPp17", "bRPd17", "bRPp17" };

	private static boolean bLd18;
	private static boolean bRd18;
	private static boolean bUd18;
	private static boolean bDd18;
	private static boolean bSeld18;
	private static boolean bStd18;
	private static boolean bLJBd18;
	private static boolean bRJBd18;
	private static boolean bLTd18;
	private static boolean bRTd18;
	private static boolean bLp18;
	private static boolean bRp18;
	private static boolean bUp18;
	private static boolean bDp18;
	private static boolean bSelp18;
	private static boolean bStp18;
	private static boolean bLTp18;
	private static boolean bRTp18;
	private static boolean bLJBp18;
	private static boolean bRJBp18;
	private static boolean LScLd18;// controller Left Down
	private static boolean LScLp18;// controller Left pressed
	private static boolean LScRd18;// controller Right Down
	private static boolean LScRp18;// controller Right pressed
	private static boolean LScUd18;// controller Up Down
	private static boolean LScUp18;// controller Up Pressed
	private static boolean LScDd18;// controller Down Down
	private static boolean LScDp18;// controller Down Pressed
	private static boolean RScLd18;// controller Left Down
	private static boolean RScLp18;// controller Left pressed
	private static boolean RScRd18;// controller Right Down
	private static boolean RScRp18;// controller Right pressed
	private static boolean RScUd18;// controller Up Down
	private static boolean RScUp18;// controller Up Pressed
	private static boolean RScDd18;// controller Down Down
	private static boolean RScDp18;// controller Down Pressed
	private static boolean b_5p18;// controller Down Pressed
	private static boolean b_5d18;// controller Down down
	private static boolean b_11p18;// controller Down Pressed
	private static boolean b_11d18;// controller Down down
	private static boolean b_12p18;// controller Down Pressed
	private static boolean b_12d18;// controller Down down
	private static boolean b_13p18;// controller Down Pressed
	private static boolean b_13d18;// controller Down down
	private static boolean b_14p18;// controller Down Pressed
	private static boolean b_14d18;// controller Down down
	private static boolean bLPd18;
	private static boolean bLPp18;
	private static boolean bRPd18;
	private static boolean bRPp18;
	private static String[] ControllerEighteenButtons = { "bLd18", "bRd18", "bUd18", "bDd18", "bSeld18", "bStd18", "bLJBd18", "bRJBd18", "bLTd18", "bRTd18",
			"bLTd18", "bLp18", "bRp18", "bUp18", "bDp18", "bSelp18", "bStp18", "bLTp18", "bRTp18", "bLJBp18", "bRJBp18", "bLTd18", "bLTd18", "bLTd18", "LScLd18",
			"LScLp18", "LScRd18", "LScRp18", "LScLd18", "LScRd18", "LScRp18", "LScUd18", "LScUp18", "LScDd18", "LScDp18", "RScLd18", "RScLp18", "RScRd18", "RScRp18",
			"RScLd18", "RScRd18", "RScRp18", "RScUd18", "RScUp18", "RScDd18", "RScDp18", "b_5p18", "b_5d18", "b_11p18", "b_11d18", "b_12p18", "b_12d18", "b_13p18",
			"b_13d18", "b_14p18", "b_14d18", "bLPd18", "bLPp18", "bRPd18", "bRPp18" };

	private static boolean bLd19;
	private static boolean bRd19;
	private static boolean bUd19;
	private static boolean bDd19;
	private static boolean bSeld19;
	private static boolean bStd19;
	private static boolean bLJBd19;
	private static boolean bRJBd19;
	private static boolean bLTd19;
	private static boolean bRTd19;
	private static boolean bLp19;
	private static boolean bRp19;
	private static boolean bUp19;
	private static boolean bDp19;
	private static boolean bSelp19;
	private static boolean bStp19;
	private static boolean bLTp19;
	private static boolean bRTp19;
	private static boolean bLJBp19;
	private static boolean bRJBp19;
	private static boolean LScLd19;// controller Left Down
	private static boolean LScLp19;// controller Left pressed
	private static boolean LScRd19;// controller Right Down
	private static boolean LScRp19;// controller Right pressed
	private static boolean LScUd19;// controller Up Down
	private static boolean LScUp19;// controller Up Pressed
	private static boolean LScDd19;// controller Down Down
	private static boolean LScDp19;// controller Down Pressed
	private static boolean RScLd19;// controller Left Down
	private static boolean RScLp19;// controller Left pressed
	private static boolean RScRd19;// controller Right Down
	private static boolean RScRp19;// controller Right pressed
	private static boolean RScUd19;// controller Up Down
	private static boolean RScUp19;// controller Up Pressed
	private static boolean RScDd19;// controller Down Down
	private static boolean RScDp19;// controller Down Pressed
	private static boolean b_5p19;// controller Down Pressed
	private static boolean b_5d19;// controller Down down
	private static boolean b_11p19;// controller Down Pressed
	private static boolean b_11d19;// controller Down down
	private static boolean b_12p19;// controller Down Pressed
	private static boolean b_12d19;// controller Down down
	private static boolean b_13p19;// controller Down Pressed
	private static boolean b_13d19;// controller Down down
	private static boolean b_14p19;// controller Down Pressed
	private static boolean b_14d19;// controller Down down
	private static boolean bLPd19;
	private static boolean bLPp19;
	private static boolean bRPd19;
	private static boolean bRPp19;
	private static String[] ControllerNineteenButtons = { "bLd19", "bRd19", "bUd19", "bDd19", "bSeld19", "bStd19", "bLJBd19", "bRJBd19", "bLTd19", "bRTd19",
			"bLTd19", "bLp19", "bRp19", "bUp19", "bDp19", "bSelp19", "bStp19", "bLTp19", "bRTp19", "bLJBp19", "bRJBp19", "bLTd19", "bLTd19", "bLTd19", "LScLd19",
			"LScLp19", "LScRd19", "LScRp19", "LScLd19", "LScRd19", "LScRp19", "LScUd19", "LScUp19", "LScDd19", "LScDp19", "RScLd19", "RScLp19", "RScRd19", "RScRp19",
			"RScLd19", "RScRd19", "RScRp19", "RScUd19", "RScUp19", "RScDd19", "RScDp19", "b_5p19", "b_5d19", "b_11p19", "b_11d19", "b_12p19", "b_12d19", "b_13p19",
			"b_13d19", "b_14p19", "b_14d19", "bLPd19", "bLPp19", "bRPd19", "bRPp19" };

	private static boolean bLd20;
	private static boolean bRd20;
	private static boolean bUd20;
	private static boolean bDd20;
	private static boolean bSeld20;
	private static boolean bStd20;
	private static boolean bLJBd20;
	private static boolean bRJBd20;
	private static boolean bLTd20;
	private static boolean bRTd20;
	private static boolean bLp20;
	private static boolean bRp20;
	private static boolean bUp20;
	private static boolean bDp20;
	private static boolean bSelp20;
	private static boolean bStp20;
	private static boolean bLTp20;
	private static boolean bRTp20;
	private static boolean bLJBp20;
	private static boolean bRJBp20;
	private static boolean LScLd20;// controller Left Down
	private static boolean LScLp20;// controller Left pressed
	private static boolean LScRd20;// controller Right Down
	private static boolean LScRp20;// controller Right pressed
	private static boolean LScUd20;// controller Up Down
	private static boolean LScUp20;// controller Up Pressed
	private static boolean LScDd20;// controller Down Down
	private static boolean LScDp20;// controller Down Pressed
	private static boolean RScLd20;// controller Left Down
	private static boolean RScLp20;// controller Left pressed
	private static boolean RScRd20;// controller Right Down
	private static boolean RScRp20;// controller Right pressed
	private static boolean RScUd20;// controller Up Down
	private static boolean RScUp20;// controller Up Pressed
	private static boolean RScDd20;// controller Down Down
	private static boolean RScDp20;// controller Down Pressed
	private static boolean b_5p20;// controller Down Pressed
	private static boolean b_5d20;// controller Down down
	private static boolean b_11p20;// controller Down Pressed
	private static boolean b_11d20;// controller Down down
	private static boolean b_12p20;// controller Down Pressed
	private static boolean b_12d20;// controller Down down
	private static boolean b_13p20;// controller Down Pressed
	private static boolean b_13d20;// controller Down down
	private static boolean b_14p20;// controller Down Pressed
	private static boolean b_14d20;// controller Down down
	private static boolean bLPd20;
	private static boolean bLPp20;
	private static boolean bRPd20;
	private static boolean bRPp20;
	private static String[] ControllerTwentyButtons = { "bLd20", "bRd20", "bUd20", "bDd20", "bSeld20", "bStd20", "bLJBd20", "bRJBd20", "bLTd20", "bRTd20", "bLTd20",
			"bLp20", "bRp20", "bUp20", "bDp20", "bSelp20", "bStp20", "bLTp20", "bRTp20", "bLJBp20", "bRJBp20", "bLTd20", "bLTd20", "bLTd20", "LScLd20", "LScLp20",
			"LScRd20", "LScRp20", "LScLd20", "LScRd20", "LScRp20", "LScUd20", "LScUp20", "LScDd20", "LScDp20", "RScLd20", "RScLp20", "RScRd20", "RScRp20", "RScLd20",
			"RScRd20", "RScRp20", "RScUd20", "RScUp20", "RScDd20", "RScDp20", "b_5p20", "b_5d20", "b_11p20", "b_11d20", "b_12p20", "b_12d20", "b_13p20", "b_13d20",
			"b_14p20", "b_14d20", "bLPd20", "bLPp20", "bRPd20", "bRPp20" };

	private static boolean bLd21;
	private static boolean bRd21;
	private static boolean bUd21;
	private static boolean bDd21;
	private static boolean bSeld21;
	private static boolean bStd21;
	private static boolean bLJBd21;
	private static boolean bRJBd21;
	private static boolean bLTd21;
	private static boolean bRTd21;
	private static boolean bLp21;
	private static boolean bRp21;
	private static boolean bUp21;
	private static boolean bDp21;
	private static boolean bSelp21;
	private static boolean bStp21;
	private static boolean bLTp21;
	private static boolean bRTp21;
	private static boolean bLJBp21;
	private static boolean bRJBp21;
	private static boolean LScLd21;// controller Left Down
	private static boolean LScLp21;// controller Left pressed
	private static boolean LScRd21;// controller Right Down
	private static boolean LScRp21;// controller Right pressed
	private static boolean LScUd21;// controller Up Down
	private static boolean LScUp21;// controller Up Pressed
	private static boolean LScDd21;// controller Down Down
	private static boolean LScDp21;// controller Down Pressed
	private static boolean RScLd21;// controller Left Down
	private static boolean RScLp21;// controller Left pressed
	private static boolean RScRd21;// controller Right Down
	private static boolean RScRp21;// controller Right pressed
	private static boolean RScUd21;// controller Up Down
	private static boolean RScUp21;// controller Up Pressed
	private static boolean RScDd21;// controller Down Down
	private static boolean RScDp21;// controller Down Pressed
	private static boolean b_5p21;// controller Down Pressed
	private static boolean b_5d21;// controller Down down
	private static boolean b_11p21;// controller Down Pressed
	private static boolean b_11d21;// controller Down down
	private static boolean b_12p21;// controller Down Pressed
	private static boolean b_12d21;// controller Down down
	private static boolean b_13p21;// controller Down Pressed
	private static boolean b_13d21;// controller Down down
	private static boolean b_14p21;// controller Down Pressed
	private static boolean b_14d21;// controller Down down
	private static boolean bLPd21;
	private static boolean bLPp21;
	private static boolean bRPd21;
	private static boolean bRPp21;
	private static String[] ControllerTwentyOneButtons = { "bLd21", "bRd21", "bUd21", "bDd21", "bSeld21", "bStd21", "bLJBd21", "bRJBd21", "bLTd21", "bRTd21",
			"bLTd21", "bLp21", "bRp21", "bUp21", "bDp21", "bSelp21", "bStp21", "bLTp21", "bRTp21", "bLJBp21", "bRJBp21", "bLTd21", "bLTd21", "bLTd21", "LScLd21",
			"LScLp21", "LScRd21", "LScRp21", "LScLd21", "LScRd21", "LScRp21", "LScUd21", "LScUp21", "LScDd21", "LScDp21", "RScLd21", "RScLp21", "RScRd21", "RScRp21",
			"RScLd21", "RScRd21", "RScRp21", "RScUd21", "RScUp21", "RScDd21", "RScDp21", "b_5p21", "b_5d21", "b_11p21", "b_11d21", "b_12p21", "b_12d21", "b_13p21",
			"b_13d21", "b_14p21", "b_14d21", "bLPd21", "bLPp21", "bRPd21", "bRPp21" };

	private static boolean bLd22;
	private static boolean bRd22;
	private static boolean bUd22;
	private static boolean bDd22;
	private static boolean bSeld22;
	private static boolean bStd22;
	private static boolean bLJBd22;
	private static boolean bRJBd22;
	private static boolean bLTd22;
	private static boolean bRTd22;
	private static boolean bLp22;
	private static boolean bRp22;
	private static boolean bUp22;
	private static boolean bDp22;
	private static boolean bSelp22;
	private static boolean bStp22;
	private static boolean bLTp22;
	private static boolean bRTp22;
	private static boolean bLJBp22;
	private static boolean bRJBp22;
	private static boolean LScLd22;// controller Left Down
	private static boolean LScLp22;// controller Left pressed
	private static boolean LScRd22;// controller Right Down
	private static boolean LScRp22;// controller Right pressed
	private static boolean LScUd22;// controller Up Down
	private static boolean LScUp22;// controller Up Pressed
	private static boolean LScDd22;// controller Down Down
	private static boolean LScDp22;// controller Down Pressed
	private static boolean RScLd22;// controller Left Down
	private static boolean RScLp22;// controller Left pressed
	private static boolean RScRd22;// controller Right Down
	private static boolean RScRp22;// controller Right pressed
	private static boolean RScUd22;// controller Up Down
	private static boolean RScUp22;// controller Up Pressed
	private static boolean RScDd22;// controller Down Down
	private static boolean RScDp22;// controller Down Pressed
	private static boolean b_5p22;// controller Down Pressed
	private static boolean b_5d22;// controller Down down
	private static boolean b_11p22;// controller Down Pressed
	private static boolean b_11d22;// controller Down down
	private static boolean b_12p22;// controller Down Pressed
	private static boolean b_12d22;// controller Down down
	private static boolean b_13p22;// controller Down Pressed
	private static boolean b_13d22;// controller Down down
	private static boolean b_14p22;// controller Down Pressed
	private static boolean b_14d22;// controller Down down
	private static boolean bLPd22;
	private static boolean bLPp22;
	private static boolean bRPd22;
	private static boolean bRPp22;
	private static String[] ControllerTwentyTwoButtons = { "bLd22", "bRd22", "bUd22", "bDd22", "bSeld22", "bStd22", "bLJBd22", "bRJBd22", "bLTd22", "bRTd22",
			"bLTd22", "bLp22", "bRp22", "bUp22", "bDp22", "bSelp22", "bStp22", "bLTp22", "bRTp22", "bLJBp22", "bRJBp22", "bLTd22", "bLTd22", "bLTd22", "LScLd22",
			"LScLp22", "LScRd22", "LScRp22", "LScLd22", "LScRd22", "LScRp22", "LScUd22", "LScUp22", "LScDd22", "LScDp22", "RScLd22", "RScLp22", "RScRd22", "RScRp22",
			"RScLd22", "RScRd22", "RScRp22", "RScUd22", "RScUp22", "RScDd22", "RScDp22", "b_5p22", "b_5d22", "b_11p22", "b_11d22", "b_12p22", "b_12d22", "b_13p22",
			"b_13d22", "b_14p22", "b_14d22", "bLPd22", "bLPp22", "bRPd22", "bRPp22" };

	private static boolean bLd23;
	private static boolean bRd23;
	private static boolean bUd23;
	private static boolean bDd23;
	private static boolean bSeld23;
	private static boolean bStd23;
	private static boolean bLJBd23;
	private static boolean bRJBd23;
	private static boolean bLTd23;
	private static boolean bRTd23;
	private static boolean bLp23;
	private static boolean bRp23;
	private static boolean bUp23;
	private static boolean bDp23;
	private static boolean bSelp23;
	private static boolean bStp23;
	private static boolean bLTp23;
	private static boolean bRTp23;
	private static boolean bLJBp23;
	private static boolean bRJBp23;
	private static boolean LScLd23;// controller Left Down
	private static boolean LScLp23;// controller Left pressed
	private static boolean LScRd23;// controller Right Down
	private static boolean LScRp23;// controller Right pressed
	private static boolean LScUd23;// controller Up Down
	private static boolean LScUp23;// controller Up Pressed
	private static boolean LScDd23;// controller Down Down
	private static boolean LScDp23;// controller Down Pressed
	private static boolean RScLd23;// controller Left Down
	private static boolean RScLp23;// controller Left pressed
	private static boolean RScRd23;// controller Right Down
	private static boolean RScRp23;// controller Right pressed
	private static boolean RScUd23;// controller Up Down
	private static boolean RScUp23;// controller Up Pressed
	private static boolean RScDd23;// controller Down Down
	private static boolean RScDp23;// controller Down Pressed
	private static boolean b_5p23;// controller Down Pressed
	private static boolean b_5d23;// controller Down down
	private static boolean b_11p23;// controller Down Pressed
	private static boolean b_11d23;// controller Down down
	private static boolean b_12p23;// controller Down Pressed
	private static boolean b_12d23;// controller Down down
	private static boolean b_13p23;// controller Down Pressed
	private static boolean b_13d23;// controller Down down
	private static boolean b_14p23;// controller Down Pressed
	private static boolean b_14d23;// controller Down down
	private static boolean bLPd23;
	private static boolean bLPp23;
	private static boolean bRPd23;
	private static boolean bRPp23;
	private static String[] ControllerTwentyThreeButtons = { "bLd23", "bRd23", "bUd23", "bDd23", "bSeld23", "bStd23", "bLJBd23", "bRJBd23", "bLTd23", "bRTd23",
			"bLTd23", "bLp23", "bRp23", "bUp23", "bDp23", "bSelp23", "bStp23", "bLTp23", "bRTp23", "bLJBp23", "bRJBp23", "bLTd23", "bLTd23", "bLTd23", "LScLd23",
			"LScLp23", "LScRd23", "LScRp23", "LScLd23", "LScRd23", "LScRp23", "LScUd23", "LScUp23", "LScDd23", "LScDp23", "RScLd23", "RScLp23", "RScRd23", "RScRp23",
			"RScLd23", "RScRd23", "RScRp23", "RScUd23", "RScUp23", "RScDd23", "RScDp23", "b_5p23", "b_5d23", "b_11p23", "b_11d23", "b_12p23", "b_12d23", "b_13p23",
			"b_13d23", "b_14p23", "b_14d23", "bLPd23", "bLPp23", "bRPd23", "bRPp23" };

	private static boolean bLd24;
	private static boolean bRd24;
	private static boolean bUd24;
	private static boolean bDd24;
	private static boolean bSeld24;
	private static boolean bStd24;
	private static boolean bLJBd24;
	private static boolean bRJBd24;
	private static boolean bLTd24;
	private static boolean bRTd24;
	private static boolean bLp24;
	private static boolean bRp24;
	private static boolean bUp24;
	private static boolean bDp24;
	private static boolean bSelp24;
	private static boolean bStp24;
	private static boolean bLTp24;
	private static boolean bRTp24;
	private static boolean bLJBp24;
	private static boolean bRJBp24;
	private static boolean LScLd24;// controller Left Down
	private static boolean LScLp24;// controller Left pressed
	private static boolean LScRd24;// controller Right Down
	private static boolean LScRp24;// controller Right pressed
	private static boolean LScUd24;// controller Up Down
	private static boolean LScUp24;// controller Up Pressed
	private static boolean LScDd24;// controller Down Down
	private static boolean LScDp24;// controller Down Pressed
	private static boolean RScLd24;// controller Left Down
	private static boolean RScLp24;// controller Left pressed
	private static boolean RScRd24;// controller Right Down
	private static boolean RScRp24;// controller Right pressed
	private static boolean RScUd24;// controller Up Down
	private static boolean RScUp24;// controller Up Pressed
	private static boolean RScDd24;// controller Down Down
	private static boolean RScDp24;// controller Down Pressed
	private static boolean b_5p24;// controller Down Pressed
	private static boolean b_5d24;// controller Down down
	private static boolean b_11p24;// controller Down Pressed
	private static boolean b_11d24;// controller Down down
	private static boolean b_12p24;// controller Down Pressed
	private static boolean b_12d24;// controller Down down
	private static boolean b_13p24;// controller Down Pressed
	private static boolean b_13d24;// controller Down down
	private static boolean b_14p24;// controller Down Pressed
	private static boolean b_14d24;// controller Down down
	private static boolean bLPd24;
	private static boolean bLPp24;
	private static boolean bRPd24;
	private static boolean bRPp24;
	private static String[] ControllerTwentyFourButtons = { "bLd24", "bRd24", "bUd24", "bDd24", "bSeld24", "bStd24", "bLJBd24", "bRJBd24", "bLTd24", "bRTd24",
			"bLTd24", "bLp24", "bRp24", "bUp24", "bDp24", "bSelp24", "bStp24", "bLTp24", "bRTp24", "bLJBp24", "bRJBp24", "bLTd24", "bLTd24", "bLTd24", "LScLd24",
			"LScLp24", "LScRd24", "LScRp24", "LScLd24", "LScRd24", "LScRp24", "LScUd24", "LScUp24", "LScDd24", "LScDp24", "RScLd24", "RScLp24", "RScRd24", "RScRp24",
			"RScLd24", "RScRd24", "RScRp24", "RScUd24", "RScUp24", "RScDd24", "RScDp24", "b_5p24", "b_5d24", "b_11p24", "b_11d24", "b_12p24", "b_12d24", "b_13p24",
			"b_13d24", "b_14p24", "b_14d24", "bLPd24", "bLPp24", "bRPd24", "bRPp24" };

	private static boolean bLd25;
	private static boolean bRd25;
	private static boolean bUd25;
	private static boolean bDd25;
	private static boolean bSeld25;
	private static boolean bStd25;
	private static boolean bLJBd25;
	private static boolean bRJBd25;
	private static boolean bLTd25;
	private static boolean bRTd25;
	private static boolean bLp25;
	private static boolean bRp25;
	private static boolean bUp25;
	private static boolean bDp25;
	private static boolean bSelp25;
	private static boolean bStp25;
	private static boolean bLTp25;
	private static boolean bRTp25;
	private static boolean bLJBp25;
	private static boolean bRJBp25;
	private static boolean LScLd25;// controller Left Down
	private static boolean LScLp25;// controller Left pressed
	private static boolean LScRd25;// controller Right Down
	private static boolean LScRp25;// controller Right pressed
	private static boolean LScUd25;// controller Up Down
	private static boolean LScUp25;// controller Up Pressed
	private static boolean LScDd25;// controller Down Down
	private static boolean LScDp25;// controller Down Pressed
	private static boolean RScLd25;// controller Left Down
	private static boolean RScLp25;// controller Left pressed
	private static boolean RScRd25;// controller Right Down
	private static boolean RScRp25;// controller Right pressed
	private static boolean RScUd25;// controller Up Down
	private static boolean RScUp25;// controller Up Pressed
	private static boolean RScDd25;// controller Down Down
	private static boolean RScDp25;// controller Down Pressed
	private static boolean b_5p25;// controller Down Pressed
	private static boolean b_5d25;// controller Down down
	private static boolean b_11p25;// controller Down Pressed
	private static boolean b_11d25;// controller Down down
	private static boolean b_12p25;// controller Down Pressed
	private static boolean b_12d25;// controller Down down
	private static boolean b_13p25;// controller Down Pressed
	private static boolean b_13d25;// controller Down down
	private static boolean b_14p25;// controller Down Pressed
	private static boolean b_14d25;// controller Down down
	private static boolean bLPd25;
	private static boolean bLPp25;
	private static boolean bRPd25;
	private static boolean bRPp25;
	private static String[] ControllerTwentyFiveButtons = { "bLd25", "bRd25", "bUd25", "bDd25", "bSeld25", "bStd25", "bLJBd25", "bRJBd25", "bLTd25", "bRTd25",
			"bLTd25", "bLp25", "bRp25", "bUp25", "bDp25", "bSelp25", "bStp25", "bLTp25", "bRTp25", "bLJBp25", "bRJBp25", "bLTd25", "bLTd25", "bLTd25", "LScLd25",
			"LScLp25", "LScRd25", "LScRp25", "LScLd25", "LScRd25", "LScRp25", "LScUd25", "LScUp25", "LScDd25", "LScDp25", "RScLd25", "RScLp25", "RScRd25", "RScRp25",
			"RScLd25", "RScRd25", "RScRp25", "RScUd25", "RScUp25", "RScDd25", "RScDp25", "b_5p25", "b_5d25", "b_11p25", "b_11d25", "b_12p25", "b_12d25", "b_13p25",
			"b_13d25", "b_14p25", "b_14d25", "bLPd25", "bLPp25", "bRPd25", "bRPp25" };

	private static boolean bLd26;
	private static boolean bRd26;
	private static boolean bUd26;
	private static boolean bDd26;
	private static boolean bSeld26;
	private static boolean bStd26;
	private static boolean bLJBd26;
	private static boolean bRJBd26;
	private static boolean bLTd26;
	private static boolean bRTd26;
	private static boolean bLp26;
	private static boolean bRp26;
	private static boolean bUp26;
	private static boolean bDp26;
	private static boolean bSelp26;
	private static boolean bStp26;
	private static boolean bLTp26;
	private static boolean bRTp26;
	private static boolean bLJBp26;
	private static boolean bRJBp26;
	private static boolean LScLd26;// controller Left Down
	private static boolean LScLp26;// controller Left pressed
	private static boolean LScRd26;// controller Right Down
	private static boolean LScRp26;// controller Right pressed
	private static boolean LScUd26;// controller Up Down
	private static boolean LScUp26;// controller Up Pressed
	private static boolean LScDd26;// controller Down Down
	private static boolean LScDp26;// controller Down Pressed
	private static boolean RScLd26;// controller Left Down
	private static boolean RScLp26;// controller Left pressed
	private static boolean RScRd26;// controller Right Down
	private static boolean RScRp26;// controller Right pressed
	private static boolean RScUd26;// controller Up Down
	private static boolean RScUp26;// controller Up Pressed
	private static boolean RScDd26;// controller Down Down
	private static boolean RScDp26;// controller Down Pressed
	private static boolean b_5p26;// controller Down Pressed
	private static boolean b_5d26;// controller Down down
	private static boolean b_11p26;// controller Down Pressed
	private static boolean b_11d26;// controller Down down
	private static boolean b_12p26;// controller Down Pressed
	private static boolean b_12d26;// controller Down down
	private static boolean b_13p26;// controller Down Pressed
	private static boolean b_13d26;// controller Down down
	private static boolean b_14p26;// controller Down Pressed
	private static boolean b_14d26;// controller Down down
	private static boolean bLPd26;
	private static boolean bLPp26;
	private static boolean bRPd26;
	private static boolean bRPp26;
	private static String[] ControllerTwentySixButtons = { "bLd26", "bRd26", "bUd26", "bDd26", "bSeld26", "bStd26", "bLJBd26", "bRJBd26", "bLTd26", "bRTd26",
			"bLTd26", "bLp26", "bRp26", "bUp26", "bDp26", "bSelp26", "bStp26", "bLTp26", "bRTp26", "bLJBp26", "bRJBp26", "bLTd26", "bLTd26", "bLTd26", "LScLd26",
			"LScLp26", "LScRd26", "LScRp26", "LScLd26", "LScRd26", "LScRp26", "LScUd26", "LScUp26", "LScDd26", "LScDp26", "RScLd26", "RScLp26", "RScRd26", "RScRp26",
			"RScLd26", "RScRd26", "RScRp26", "RScUd26", "RScUp26", "RScDd26", "RScDp26", "b_5p26", "b_5d26", "b_11p26", "b_11d26", "b_12p26", "b_12d26", "b_13p26",
			"b_13d26", "b_14p26", "b_14d26", "bLPd26", "bLPp26", "bRPd26", "bRPp26" };

	private static boolean bLd27;
	private static boolean bRd27;
	private static boolean bUd27;
	private static boolean bDd27;
	private static boolean bSeld27;
	private static boolean bStd27;
	private static boolean bLJBd27;
	private static boolean bRJBd27;
	private static boolean bLTd27;
	private static boolean bRTd27;
	private static boolean bLp27;
	private static boolean bRp27;
	private static boolean bUp27;
	private static boolean bDp27;
	private static boolean bSelp27;
	private static boolean bStp27;
	private static boolean bLTp27;
	private static boolean bRTp27;
	private static boolean bLJBp27;
	private static boolean bRJBp27;
	private static boolean LScLd27;// controller Left Down
	private static boolean LScLp27;// controller Left pressed
	private static boolean LScRd27;// controller Right Down
	private static boolean LScRp27;// controller Right pressed
	private static boolean LScUd27;// controller Up Down
	private static boolean LScUp27;// controller Up Pressed
	private static boolean LScDd27;// controller Down Down
	private static boolean LScDp27;// controller Down Pressed
	private static boolean RScLd27;// controller Left Down
	private static boolean RScLp27;// controller Left pressed
	private static boolean RScRd27;// controller Right Down
	private static boolean RScRp27;// controller Right pressed
	private static boolean RScUd27;// controller Up Down
	private static boolean RScUp27;// controller Up Pressed
	private static boolean RScDd27;// controller Down Down
	private static boolean RScDp27;// controller Down Pressed
	private static boolean b_5p27;// controller Down Pressed
	private static boolean b_5d27;// controller Down down
	private static boolean b_11p27;// controller Down Pressed
	private static boolean b_11d27;// controller Down down
	private static boolean b_12p27;// controller Down Pressed
	private static boolean b_12d27;// controller Down down
	private static boolean b_13p27;// controller Down Pressed
	private static boolean b_13d27;// controller Down down
	private static boolean b_14p27;// controller Down Pressed
	private static boolean b_14d27;// controller Down down
	private static boolean bLPd27;
	private static boolean bLPp27;
	private static boolean bRPd27;
	private static boolean bRPp27;
	private static String[] ControllerTwentySevenButtons = { "bLd27", "bRd27", "bUd27", "bDd27", "bSeld27", "bStd27", "bLJBd27", "bRJBd27", "bLTd27", "bRTd27",
			"bLTd27", "bLp27", "bRp27", "bUp27", "bDp27", "bSelp27", "bStp27", "bLTp27", "bRTp27", "bLJBp27", "bRJBp27", "bLTd27", "bLTd27", "bLTd27", "LScLd27",
			"LScLp27", "LScRd27", "LScRp27", "LScLd27", "LScRd27", "LScRp27", "LScUd27", "LScUp27", "LScDd27", "LScDp27", "RScLd27", "RScLp27", "RScRd27", "RScRp27",
			"RScLd27", "RScRd27", "RScRp27", "RScUd27", "RScUp27", "RScDd27", "RScDp27", "b_5p27", "b_5d27", "b_11p27", "b_11d27", "b_12p27", "b_12d27", "b_13p27",
			"b_13d27", "b_14p27", "b_14d27", "bLPd27", "bLPp27", "bRPd27", "bRPp27" };

	private static boolean bLd28;
	private static boolean bRd28;
	private static boolean bUd28;
	private static boolean bDd28;
	private static boolean bSeld28;
	private static boolean bStd28;
	private static boolean bLJBd28;
	private static boolean bRJBd28;
	private static boolean bLTd28;
	private static boolean bRTd28;
	private static boolean bLp28;
	private static boolean bRp28;
	private static boolean bUp28;
	private static boolean bDp28;
	private static boolean bSelp28;
	private static boolean bStp28;
	private static boolean bLTp28;
	private static boolean bRTp28;
	private static boolean bLJBp28;
	private static boolean bRJBp28;
	private static boolean LScLd28;// controller Left Down
	private static boolean LScLp28;// controller Left pressed
	private static boolean LScRd28;// controller Right Down
	private static boolean LScRp28;// controller Right pressed
	private static boolean LScUd28;// controller Up Down
	private static boolean LScUp28;// controller Up Pressed
	private static boolean LScDd28;// controller Down Down
	private static boolean LScDp28;// controller Down Pressed
	private static boolean RScLd28;// controller Left Down
	private static boolean RScLp28;// controller Left pressed
	private static boolean RScRd28;// controller Right Down
	private static boolean RScRp28;// controller Right pressed
	private static boolean RScUd28;// controller Up Down
	private static boolean RScUp28;// controller Up Pressed
	private static boolean RScDd28;// controller Down Down
	private static boolean RScDp28;// controller Down Pressed
	private static boolean b_5p28;// controller Down Pressed
	private static boolean b_5d28;// controller Down down
	private static boolean b_11p28;// controller Down Pressed
	private static boolean b_11d28;// controller Down down
	private static boolean b_12p28;// controller Down Pressed
	private static boolean b_12d28;// controller Down down
	private static boolean b_13p28;// controller Down Pressed
	private static boolean b_13d28;// controller Down down
	private static boolean b_14p28;// controller Down Pressed
	private static boolean b_14d28;// controller Down down
	private static boolean bLPd28;
	private static boolean bLPp28;
	private static boolean bRPd28;
	private static boolean bRPp28;
	private static String[] ControllerTwentyEightButtons = { "bLd28", "bRd28", "bUd28", "bDd28", "bSeld28", "bStd28", "bLJBd28", "bRJBd28", "bLTd28", "bRTd28",
			"bLTd28", "bLp28", "bRp28", "bUp28", "bDp28", "bSelp28", "bStp28", "bLTp28", "bRTp28", "bLJBp28", "bRJBp28", "bLTd28", "bLTd28", "bLTd28", "LScLd28",
			"LScLp28", "LScRd28", "LScRp28", "LScLd28", "LScRd28", "LScRp28", "LScUd28", "LScUp28", "LScDd28", "LScDp28", "RScLd28", "RScLp28", "RScRd28", "RScRp28",
			"RScLd28", "RScRd28", "RScRp28", "RScUd28", "RScUp28", "RScDd28", "RScDp28", "b_5p28", "b_5d28", "b_11p28", "b_11d28", "b_12p28", "b_12d28", "b_13p28",
			"b_13d28", "b_14p28", "b_14d28", "bLPd28", "bLPp28", "bRPd28", "bRPp28" };

	private static boolean bLd29;
	private static boolean bRd29;
	private static boolean bUd29;
	private static boolean bDd29;
	private static boolean bSeld29;
	private static boolean bStd29;
	private static boolean bLJBd29;
	private static boolean bRJBd29;
	private static boolean bLTd29;
	private static boolean bRTd29;
	private static boolean bLp29;
	private static boolean bRp29;
	private static boolean bUp29;
	private static boolean bDp29;
	private static boolean bSelp29;
	private static boolean bStp29;
	private static boolean bLTp29;
	private static boolean bRTp29;
	private static boolean bLJBp29;
	private static boolean bRJBp29;
	private static boolean LScLd29;// controller Left Down
	private static boolean LScLp29;// controller Left pressed
	private static boolean LScRd29;// controller Right Down
	private static boolean LScRp29;// controller Right pressed
	private static boolean LScUd29;// controller Up Down
	private static boolean LScUp29;// controller Up Pressed
	private static boolean LScDd29;// controller Down Down
	private static boolean LScDp29;// controller Down Pressed
	private static boolean RScLd29;// controller Left Down
	private static boolean RScLp29;// controller Left pressed
	private static boolean RScRd29;// controller Right Down
	private static boolean RScRp29;// controller Right pressed
	private static boolean RScUd29;// controller Up Down
	private static boolean RScUp29;// controller Up Pressed
	private static boolean RScDd29;// controller Down Down
	private static boolean RScDp29;// controller Down Pressed
	private static boolean b_5p29;// controller Down Pressed
	private static boolean b_5d29;// controller Down down
	private static boolean b_11p29;// controller Down Pressed
	private static boolean b_11d29;// controller Down down
	private static boolean b_12p29;// controller Down Pressed
	private static boolean b_12d29;// controller Down down
	private static boolean b_13p29;// controller Down Pressed
	private static boolean b_13d29;// controller Down down
	private static boolean b_14p29;// controller Down Pressed
	private static boolean b_14d29;// controller Down down
	private static boolean bLPd29;
	private static boolean bLPp29;
	private static boolean bRPd29;
	private static boolean bRPp29;
	private static String[] ControllerTwentyNineButtons = { "bLd29", "bRd29", "bUd29", "bDd29", "bSeld29", "bStd29", "bLJBd29", "bRJBd29", "bLTd29", "bRTd29",
			"bLTd29", "bLp29", "bRp29", "bUp29", "bDp29", "bSelp29", "bStp29", "bLTp29", "bRTp29", "bLJBp29", "bRJBp29", "bLTd29", "bLTd29", "bLTd29", "LScLd29",
			"LScLp29", "LScRd29", "LScRp29", "LScLd29", "LScRd29", "LScRp29", "LScUd29", "LScUp29", "LScDd29", "LScDp29", "RScLd29", "RScLp29", "RScRd29", "RScRp29",
			"RScLd29", "RScRd29", "RScRp29", "RScUd29", "RScUp29", "RScDd29", "RScDp29", "b_5p29", "b_5d29", "b_11p29", "b_11d29", "b_12p29", "b_12d29", "b_13p29",
			"b_13d29", "b_14p29", "b_14d29", "bLPd29", "bLPp29", "bRPd29", "bRPp29" };

	private static boolean bLd30;
	private static boolean bRd30;
	private static boolean bUd30;
	private static boolean bDd30;
	private static boolean bSeld30;
	private static boolean bStd30;
	private static boolean bLJBd30;
	private static boolean bRJBd30;
	private static boolean bLTd30;
	private static boolean bRTd30;
	private static boolean bLp30;
	private static boolean bRp30;
	private static boolean bUp30;
	private static boolean bDp30;
	private static boolean bSelp30;
	private static boolean bStp30;
	private static boolean bLTp30;
	private static boolean bRTp30;
	private static boolean bLJBp30;
	private static boolean bRJBp30;
	private static boolean LScLd30;// controller Left Down
	private static boolean LScLp30;// controller Left pressed
	private static boolean LScRd30;// controller Right Down
	private static boolean LScRp30;// controller Right pressed
	private static boolean LScUd30;// controller Up Down
	private static boolean LScUp30;// controller Up Pressed
	private static boolean LScDd30;// controller Down Down
	private static boolean LScDp30;// controller Down Pressed
	private static boolean RScLd30;// controller Left Down
	private static boolean RScLp30;// controller Left pressed
	private static boolean RScRd30;// controller Right Down
	private static boolean RScRp30;// controller Right pressed
	private static boolean RScUd30;// controller Up Down
	private static boolean RScUp30;// controller Up Pressed
	private static boolean RScDd30;// controller Down Down
	private static boolean RScDp30;// controller Down Pressed
	private static boolean b_5p30;// controller Down Pressed
	private static boolean b_5d30;// controller Down down
	private static boolean b_11p30;// controller Down Pressed
	private static boolean b_11d30;// controller Down down
	private static boolean b_12p30;// controller Down Pressed
	private static boolean b_12d30;// controller Down down
	private static boolean b_13p30;// controller Down Pressed
	private static boolean b_13d30;// controller Down down
	private static boolean b_14p30;// controller Down Pressed
	private static boolean b_14d30;// controller Down down
	private static boolean bLPd30;
	private static boolean bLPp30;
	private static boolean bRPd30;
	private static boolean bRPp30;
	private static String[] ControllerThirtyButtons = { "bLd30", "bRd30", "bUd30", "bDd30", "bSeld30", "bStd30", "bLJBd30", "bRJBd30", "bLTd30", "bRTd30", "bLTd30",
			"bLp30", "bRp30", "bUp30", "bDp30", "bSelp30", "bStp30", "bLTp30", "bRTp30", "bLJBp30", "bRJBp30", "bLTd30", "bLTd30", "bLTd30", "LScLd30", "LScLp30",
			"LScRd30", "LScRp30", "LScLd30", "LScRd30", "LScRp30", "LScUd30", "LScUp30", "LScDd30", "LScDp30", "RScLd30", "RScLp30", "RScRd30", "RScRp30", "RScLd30",
			"RScRd30", "RScRp30", "RScUd30", "RScUp30", "RScDd30", "RScDp30", "b_5p30", "b_5d30", "b_11p30", "b_11d30", "b_12p30", "b_12d30", "b_13p30", "b_13d30",
			"b_14p30", "b_14d30", "bLPd30", "bLPp30", "bRPd30", "bRPp30" };

	private static boolean bLd31;
	private static boolean bRd31;
	private static boolean bUd31;
	private static boolean bDd31;
	private static boolean bSeld31;
	private static boolean bStd31;
	private static boolean bLJBd31;
	private static boolean bRJBd31;
	private static boolean bLTd31;
	private static boolean bRTd31;
	private static boolean bLp31;
	private static boolean bRp31;
	private static boolean bUp31;
	private static boolean bDp31;
	private static boolean bSelp31;
	private static boolean bStp31;
	private static boolean bLTp31;
	private static boolean bRTp31;
	private static boolean bLJBp31;
	private static boolean bRJBp31;
	private static boolean LScLd31;// controller Left Down
	private static boolean LScLp31;// controller Left pressed
	private static boolean LScRd31;// controller Right Down
	private static boolean LScRp31;// controller Right pressed
	private static boolean LScUd31;// controller Up Down
	private static boolean LScUp31;// controller Up Pressed
	private static boolean LScDd31;// controller Down Down
	private static boolean LScDp31;// controller Down Pressed
	private static boolean RScLd31;// controller Left Down
	private static boolean RScLp31;// controller Left pressed
	private static boolean RScRd31;// controller Right Down
	private static boolean RScRp31;// controller Right pressed
	private static boolean RScUd31;// controller Up Down
	private static boolean RScUp31;// controller Up Pressed
	private static boolean RScDd31;// controller Down Down
	private static boolean RScDp31;// controller Down Pressed
	private static boolean b_5p31;// controller Down Pressed
	private static boolean b_5d31;// controller Down down
	private static boolean b_11p31;// controller Down Pressed
	private static boolean b_11d31;// controller Down down
	private static boolean b_12p31;// controller Down Pressed
	private static boolean b_12d31;// controller Down down
	private static boolean b_13p31;// controller Down Pressed
	private static boolean b_13d31;// controller Down down
	private static boolean b_14p31;// controller Down Pressed
	private static boolean b_14d31;// controller Down down
	private static boolean bLPd31;
	private static boolean bLPp31;
	private static boolean bRPd31;
	private static boolean bRPp31;
	private static String[] ControllerThirtyOneButtons = { "bLd31", "bRd31", "bUd31", "bDd31", "bSeld31", "bStd31", "bLJBd31", "bRJBd31", "bLTd31", "bRTd31",
			"bLTd31", "bLp31", "bRp31", "bUp31", "bDp31", "bSelp31", "bStp31", "bLTp31", "bRTp31", "bLJBp31", "bRJBp31", "bLTd31", "bLTd31", "bLTd31", "LScLd31",
			"LScLp31", "LScRd31", "LScRp31", "LScLd31", "LScRd31", "LScRp31", "LScUd31", "LScUp31", "LScDd31", "LScDp31", "RScLd31", "RScLp31", "RScRd31", "RScRp31",
			"RScLd31", "RScRd31", "RScRp31", "RScUd31", "RScUp31", "RScDd31", "RScDp31", "b_5p31", "b_5d31", "b_11p31", "b_11d31", "b_12p31", "b_12d31", "b_13p31",
			"b_13d31", "b_14p31", "b_14d31", "bLPd31", "bLPp31", "bRPd31", "bRPp31" };

	private static boolean bLd32;
	private static boolean bRd32;
	private static boolean bUd32;
	private static boolean bDd32;
	private static boolean bSeld32;
	private static boolean bStd32;
	private static boolean bLJBd32;
	private static boolean bRJBd32;
	private static boolean bLTd32;
	private static boolean bRTd32;
	private static boolean bLp32;
	private static boolean bRp32;
	private static boolean bUp32;
	private static boolean bDp32;
	private static boolean bSelp32;
	private static boolean bStp32;
	private static boolean bLTp32;
	private static boolean bRTp32;
	private static boolean bLJBp32;
	private static boolean bRJBp32;
	private static boolean LScLd32;// controller Left Down
	private static boolean LScLp32;// controller Left pressed
	private static boolean LScRd32;// controller Right Down
	private static boolean LScRp32;// controller Right pressed
	private static boolean LScUd32;// controller Up Down
	private static boolean LScUp32;// controller Up Pressed
	private static boolean LScDd32;// controller Down Down
	private static boolean LScDp32;// controller Down Pressed
	private static boolean RScLd32;// controller Left Down
	private static boolean RScLp32;// controller Left pressed
	private static boolean RScRd32;// controller Right Down
	private static boolean RScRp32;// controller Right pressed
	private static boolean RScUd32;// controller Up Down
	private static boolean RScUp32;// controller Up Pressed
	private static boolean RScDd32;// controller Down Down
	private static boolean RScDp32;// controller Down Pressed
	private static boolean b_5p32;// controller Down Pressed
	private static boolean b_5d32;// controller Down down
	private static boolean b_11p32;// controller Down Pressed
	private static boolean b_11d32;// controller Down down
	private static boolean b_12p32;// controller Down Pressed
	private static boolean b_12d32;// controller Down down
	private static boolean b_13p32;// controller Down Pressed
	private static boolean b_13d32;// controller Down down
	private static boolean b_14p32;// controller Down Pressed
	private static boolean b_14d32;// controller Down down
	private static boolean bLPd32;
	private static boolean bLPp32;
	private static boolean bRPd32;
	private static boolean bRPp32;
	private static String[] ControllerThirtyTwoButtons = { "bLd32", "bRd32", "bUd32", "bDd32", "bSeld32", "bStd32", "bLJBd32", "bRJBd32", "bLTd32", "bRTd32",
			"bLTd32", "bLp32", "bRp32", "bUp32", "bDp32", "bSelp32", "bStp32", "bLTp32", "bRTp32", "bLJBp32", "bRJBp32", "bLTd32", "bLTd32", "bLTd32", "LScLd32",
			"LScLp32", "LScRd32", "LScRp32", "LScLd32", "LScRd32", "LScRp32", "LScUd32", "LScUp32", "LScDd32", "LScDp32", "RScLd32", "RScLp32", "RScRd32", "RScRp32",
			"RScLd32", "RScRd32", "RScRp32", "RScUd32", "RScUp32", "RScDd32", "RScDp32", "b_5p32", "b_5d32", "b_11p32", "b_11d32", "b_12p32", "b_12d32", "b_13p32",
			"b_13d32", "b_14p32", "b_14d32", "bLPd32", "bLPp32", "bRPd32", "bRPp32" };

	/*
	 * when I call the UID class, it has to know what is being stored and used as the input button type for the button being called upon. so, for any key action, i
	 * need to know what type of input, various types of presses, key or button, and the input number. bother! That's a lot! so when I save the key, i need to know
	 * those things. So when i go to get it
	 * back... It will need to know that that button is mapped that way. That's how I did it before. And now i'm just like unsure how any of that is going to work...
	 * 
	 * lets get player one to work with either of the controllers. any of them.
	 * Right now i don't have any response at all. problem: use a single controller
	 * PER player. map controllers to specific player actions based on what they
	 * push or click. when you disconnect a controller, give the option to switch to
	 * another one or plug one in? Hmmm. It's almost like I want to, map it each
	 * time and forget ID connected style controllers, as easy as that would be. If
	 * i do mapped connections, how do I specify what is selected, What Controller,
	 * button or axis, what value? If i can map those, I believe I could be able to
	 * work with that. I could save and recall those values. But, The controller
	 * listeners are driving me nuts. I need to map those to player instances. So, I
	 * need to drop the UIDe class and just call a controller specific to the player
	 * instance its in? If so what does that look like? Pause Person doesn't care
	 * what the buttons to select things are... They are quite disconnected from the
	 * rest of the game. But that doesn't mean it doesn't need its own instance. It
	 * does, but where Do I place The controller instances so that they accurately
	 * reflect what I'm trying to accomplish. I'm not using, mapped controllers,
	 * player indexes. I need something that will be easy enough to implement to get
	 * the max amount of usablity for the widest variety of controller types. :D
	 * They all have a unique string id. That will help with ONLY the instance of
	 * the controller while it is connected. That said their will be instances for
	 * that anyway. I can just map it with a controller mapper, but those instances
	 * are driving me nuts. Do I need to check each input style and open or close it
	 * depending on what someone saved to be that instance?
	 */
	public UIDe() {
		int index = 0;
		for (Controller controller : Controllers.getControllers()) {
			System.out.println("Beep Beeeeeep index: " + index++);
			Gdx.app.log("Beep Beeeeeep :Controllers: ", controller.toString());
		}
		SetControllers();
	}

	public void update() {
		if (controller != null) {
			System.out.println("controller power level: " + controller.getPowerLevel());
		}
	}

	public static boolean JustPressed(String inputCode) {
		// System.out.println("inputCode: " + inputCode);
		if (Objects.equals(inputCode, "Right_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPRight()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPLeft()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPUp()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPDown()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPFire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPSelect()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPJump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPInventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPCrouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPSprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyJustPressed(Uinput.PPStart()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPRight()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPLeft()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPUp()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPDown()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPFire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPSelect()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPJump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPInventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPCrouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPSprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonJustPressed(Uinput.PPStart()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyLSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyLSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyLSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyLSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyRSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyRSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyRSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyRSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyFire(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoySelect(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyJump(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyInventory(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyCrouch(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoySprint(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyStart(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		// Player One
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyJustPressed(Uinput1.P1Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonJustPressed(Uinput1.P1Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyLSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyLSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyLSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyLSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyRSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyRSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyRSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyRSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyFire(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoySelect(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyJump(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyInventory(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyCrouch(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoySprint(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyStart(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		// Player Two
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyJustPressed(Uinput2.P2Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonJustPressed(Uinput2.P2Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyLSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyLSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyLSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyLSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyRSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyRSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyRSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyRSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyFire(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoySelect(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyJump(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyInventory(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyCrouch(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoySprint(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyStart(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		// Player Three
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyJustPressed(Uinput3.P3Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonJustPressed(Uinput3.P3Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyLSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyLSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyLSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyLSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyRSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyRSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyRSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyRSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyFire(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoySelect(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyJump(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyInventory(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyCrouch(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoySprint(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyStart(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		// Player Four
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyJustPressed(Uinput4.P4Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonJustPressed(Uinput4.P4Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyLSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyLSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyLSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyLSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyRSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyRSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyRSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyRSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyFire(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoySelect(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyJump(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyInventory(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyCrouch(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoySprint(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyStart(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		// Player Five
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyJustPressed(Uinput5.P5Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonJustPressed(Uinput5.P5Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyLSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyLSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyLSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyLSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyRSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyRSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyRSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyRSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyFire(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoySelect(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyJump(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyInventory(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyCrouch(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoySprint(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyStart(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		// Player Six
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyJustPressed(Uinput6.P6Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonJustPressed(Uinput6.P6Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyLSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyLSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyLSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyLSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyRSRight(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyRSLeft(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyRSUp(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyRSDown(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyFire(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoySelect(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyJump(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyInventory(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyCrouch(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoySprint(), "pressed"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyStart(), "pressed"))// button, state
				return true;
			else
				return false;
		} else
			return false;
	}

	public static boolean Pressed(String inputCode) {
		// System.out.println("inputCode: " + inputCode);
		if (Objects.equals(inputCode, "Right_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPRight()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPLeft()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPUp()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPDown()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPFire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPSelect()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPJump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPInventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPCrouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPSprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PausePlayer")) {
			if (Gdx.input.isKeyPressed(Uinput.PPStart()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPRight()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPLeft()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPUp()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPDown()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPFire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPSelect()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPJump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPInventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPCrouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPSprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PausePlayer")) {
			if (Gdx.input.isButtonPressed(Uinput.PPStart()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyLSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyLSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyLSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyRSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyRSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyRSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyFire(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoySelect(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyJump(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyInventory(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyCrouch(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoySprint(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PausePlayer")) {
			if (getJoyButton(Uinput.PPJoyStart(), "down"))// button, state
				return true;
			else
				return false;
		}
		// IS PLAYER ONE:
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerOne")) {
			if (Gdx.input.isKeyPressed(Uinput1.P1Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerOne")) {
			if (Gdx.input.isButtonPressed(Uinput1.P1Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyLSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyLSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyLSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyRSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyRSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyRSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyFire(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoySelect(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyJump(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyInventory(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyCrouch(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoySprint(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerOne")) {
			if (getJoyButton(Uinput1.P1JoyStart(), "down"))// button, state
				return true;
			else
				return false;
		}
		// IS PLAYER Two:
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerTwo")) {
			if (Gdx.input.isKeyPressed(Uinput2.P2Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerTwo")) {
			if (Gdx.input.isButtonPressed(Uinput2.P2Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyLSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyLSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyLSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyRSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyRSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyRSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyFire(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoySelect(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyJump(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyInventory(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyCrouch(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoySprint(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerTwo")) {
			if (getJoyButton(Uinput2.P2JoyStart(), "down"))// button, state
				return true;
			else
				return false;
		}
		// IS PLAYER Three:
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerThree")) {
			if (Gdx.input.isKeyPressed(Uinput3.P3Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerThree")) {
			if (Gdx.input.isButtonPressed(Uinput3.P3Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyLSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyLSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyLSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyRSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyRSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyRSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyFire(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoySelect(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyJump(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyInventory(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyCrouch(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoySprint(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerThree")) {
			if (getJoyButton(Uinput3.P3JoyStart(), "down"))// button, state
				return true;
			else
				return false;
		}
		// IS PLAYER Four:
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerFour")) {
			if (Gdx.input.isKeyPressed(Uinput4.P4Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerFour")) {
			if (Gdx.input.isButtonPressed(Uinput4.P4Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyLSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyLSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyLSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyRSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyRSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyRSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyFire(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoySelect(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyJump(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyInventory(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyCrouch(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoySprint(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerFour")) {
			if (getJoyButton(Uinput4.P4JoyStart(), "down"))// button, state
				return true;
			else
				return false;
		}
		// IS PLAYER Five:
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerFive")) {
			if (Gdx.input.isKeyPressed(Uinput5.P5Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerFive")) {
			if (Gdx.input.isButtonPressed(Uinput5.P5Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyLSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyLSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyLSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyRSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyRSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyRSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyFire(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoySelect(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyJump(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyInventory(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyCrouch(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoySprint(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerFive")) {
			if (getJoyButton(Uinput5.P5JoyStart(), "down"))// button, state
				return true;
			else
				return false;
		}
		// IS PLAYER Six:
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerSix")) {
			if (Gdx.input.isKeyPressed(Uinput6.P6Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Right()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Left()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Up()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Down()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Fire()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Select()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Jump()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Inventory()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Crouch()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Sprint()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerSix")) {
			if (Gdx.input.isButtonPressed(Uinput6.P6Start()))
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyLSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyLSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyLSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyLSRight(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyRSLeft(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyRSUp(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyRSDown(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyFire(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoySelect(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyJump(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyInventory(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyCrouch(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoySprint(), "down"))// button, state
				return true;
			else
				return false;
		}
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerSix")) {
			if (getJoyButton(Uinput6.P6JoyStart(), "down"))// button, state
				return true;
			else
				return false;
		} else
			return false;
	}

	public static String lastChar(String str) {
		if (str != null && str.length() > 0) {
			str = str.substring(str.length() - 1);
		}
		return str;
	}

	public static boolean isNumeric(String str) {
		return str.matches("-?\\d+(\\.\\d+)?"); // match a number with optional '-' and decimal.
	}

	private static boolean getJoyButton(String button, String buttonState) {
		String lastChar = lastChar(button);
		String controllerX = "";
		if (!isNumeric(lastChar))
			controllerX = "controllerOne";
		else if (Objects.equals(lastChar, "2"))
			controllerX = "controllerTwo";
		else if (Objects.equals(lastChar, "3"))
			controllerX = "controllerThree";
		else if (Objects.equals(lastChar, "4"))
			controllerX = "controllerFour";
		else if (Objects.equals(lastChar, "5"))
			controllerX = "controllerFive";
		else if (Objects.equals(lastChar, "6"))
			controllerX = "controllerSix";
		else if (Objects.equals(lastChar, "7"))
			controllerX = "controllerSeven";
		else if (Objects.equals(lastChar, "8"))
			controllerX = "controllerEight";
		else if (Objects.equals(lastChar, "9"))
			controllerX = "controllerNine";
		else if (Objects.equals(lastChar, "10"))
			controllerX = "controllerTen";
		else if (Objects.equals(lastChar, "11"))
			controllerX = "controllerEleven";
		else if (Objects.equals(lastChar, "12"))
			controllerX = "controllerTwelve";
		else if (Objects.equals(lastChar, "13"))
			controllerX = "controllerThirteen";
		else if (Objects.equals(lastChar, "14"))
			controllerX = "controllerFourteen";
		else if (Objects.equals(lastChar, "15"))
			controllerX = "controllerFifteen";
		else if (Objects.equals(lastChar, "16"))
			controllerX = "controllerSixteen";
		else if (Objects.equals(lastChar, "17"))
			controllerX = "controllerSeventeen";
		else if (Objects.equals(lastChar, "18"))
			controllerX = "controllerEighteen";
		else if (Objects.equals(lastChar, "19"))
			controllerX = "controllerNineteen";
		else if (Objects.equals(lastChar, "20"))
			controllerX = "controllerTwenty";
		else if (Objects.equals(lastChar, "21"))
			controllerX = "controllerTwentyOne";
		else if (Objects.equals(lastChar, "22"))
			controllerX = "controllerTwentyTwo";
		else if (Objects.equals(lastChar, "23"))
			controllerX = "controllerTwentyThree";
		else if (Objects.equals(lastChar, "24"))
			controllerX = "controllerTwentyFour";
		else if (Objects.equals(lastChar, "25"))
			controllerX = "controllerTwentyFive";
		else if (Objects.equals(lastChar, "26"))
			controllerX = "controllerTwentySix";
		else if (Objects.equals(lastChar, "27"))
			controllerX = "controllerTwentySeven";
		else if (Objects.equals(lastChar, "28"))
			controllerX = "controllerTwentyEight";
		else if (Objects.equals(lastChar, "29"))
			controllerX = "controllerTwentyNine";
		else if (Objects.equals(lastChar, "30"))
			controllerX = "controllerThirty";
		else if (Objects.equals(lastChar, "31"))
			controllerX = "controllerThirtyOne";
		else if (Objects.equals(lastChar, "32"))
			controllerX = "controllerThirtyTwo";

		return checkControllerAndButtonPerPlayer(controllerX, button, buttonState);
	}

	private static boolean checkControllerAndButtonPerPlayer(String playerController, String button, String buttonState) {
		if (playerController == "controllerOne")
			return checkControllerOneButtons(button, buttonState);
		if (playerController == "controllerTwo")
			return checkControllerTwoButtons(button, buttonState);
		if (playerController == "controllerThree")
			return checkControllerThreeButtons(button, buttonState);
		if (playerController == "controllerThree")
			return checkControllerThreeButtons(button, buttonState);
		if (playerController == "controllerFour")
			return checkControllerFourButtons(button, buttonState);
		if (playerController == "controllerFive")
			return checkControllerFiveButtons(button, buttonState);
		if (playerController == "controllerSix")
			return checkControllerSixButtons(button, buttonState);
		if (playerController == "controllerSeven")
			return checkControllerSevenButtons(button, buttonState);
		if (playerController == "controllerEight")
			return checkControllerEightButtons(button, buttonState);
		if (playerController == "controllerNine")
			return checkControllerNineButtons(button, buttonState);
		if (playerController == "controllerTen")
			return checkControllerTenButtons(button, buttonState);
		if (playerController == "controllerEleven")
			return checkControllerElevenButtons(button, buttonState);
		if (playerController == "controllerTwelve")
			return checkControllerTwelveButtons(button, buttonState);
		if (playerController == "controllerThirteen")
			return checkControllerThirteenButtons(button, buttonState);
		if (playerController == "controllerFourteen")
			return checkControllerFourteenButtons(button, buttonState);
		if (playerController == "controllerFifteen")
			return checkControllerFifteenButtons(button, buttonState);
		if (playerController == "controllerSixteen")
			return checkControllerSixteenButtons(button, buttonState);
		if (playerController == "controllerSeventeen")
			return checkControllerSeventeenButtons(button, buttonState);
		if (playerController == "controllerEighteen")
			return checkControllerEighteenButtons(button, buttonState);
		if (playerController == "controllerNineteen")
			return checkControllerNineteenButtons(button, buttonState);
		if (playerController == "controllerTwenty")
			return checkControllerTwentyButtons(button, buttonState);
		if (playerController == "controllerTwenty")
			return checkControllerTwentyButtons(button, buttonState);
		if (playerController == "controllerTwentyOne")
			return checkControllerTwentyOneButtons(button, buttonState);
		if (playerController == "controllerTwentyTwo")
			return checkControllerTwentyTwoButtons(button, buttonState);
		if (playerController == "controllerTwentyThree")
			return checkControllerTwentyThreeButtons(button, buttonState);
		if (playerController == "controllerTwentyFour")
			return checkControllerTwentyFourButtons(button, buttonState);
		if (playerController == "controllerTwentyFive")
			return checkControllerTwentyFiveButtons(button, buttonState);
		if (playerController == "controllerTwentySix")
			return checkControllerTwentySixButtons(button, buttonState);
		if (playerController == "controllerTwentySeven")
			return checkControllerTwentySevenButtons(button, buttonState);
		if (playerController == "controllerTwentyEight")
			return checkControllerTwentyEightButtons(button, buttonState);
		if (playerController == "controllerTwentyNine")
			return checkControllerTwentyNineButtons(button, buttonState);
		if (playerController == "controllerThirty")
			return checkControllerThirtyButtons(button, buttonState);
		if (playerController == "controllerThirtyOne")
			return checkControllerThirtyOneButtons(button, buttonState);
		if (playerController == "controllerThirtyTwo")
			return checkControllerThirtyTwoButtons(button, buttonState);
		else
			return false;
	}

	private static boolean checkControllerOneButtons(String button, String buttonState) {
		// System.out.println("Controller1: button and buttonState: " + button + " state: " + buttonState);
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd")) {
				if (LScRd && !LScRp) {
					LScRp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd")) {
				if (LScDd && !LScDp) {
					LScDp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd")) {
				if (LScLd && !LScLp) {
					LScLp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd")) {
				if (LScUd && !LScUp) {
					LScUp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd")) {
				if (RScRd && !RScRp) {
					RScRp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd")) {
				if (RScDd && !RScDp) {
					RScDp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd")) {
				if (RScLd && !RScLp) {
					RScLp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd")) {
				if (RScUd && !RScUp) {
					RScUp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d")) {
				if (b_5d && !b_5p) {
					b_5p = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d")) {
				if (b_11d && !b_11p) {
					b_11p = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d")) {
				if (b_12d && !b_12p) {
					b_12p = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d")) {
				if (b_13d && !b_13p) {
					b_13p = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d")) {
				if (b_14d && !b_14p) {
					b_14p = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd")) {
				if (bRd && !bRp) {
					bRp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd")) {
				if (bLd && !bLp) {
					bLp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd")) {
				if (bUd && !bUp) {
					bUp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd")) {
				if (bDd && !bDp) {
					bDp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld")) {
				if (bSeld && !bSelp) {
					bSelp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd")) {
				if (bStd && !bStp) {
					bStp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd")) {
				if (bLTd && !bLTp) {
					bLTp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd")) {
				if (bRTd && !bRTp) {
					bRTp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd")) {
				if (bLPd && !bLPp) {
					bLPp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd")) {
				if (bRPd && !bRPp) {
					bRPp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd")) {
				if (bLJBd && !bLJBp) {
					bLJBp = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd")) {
				if (bRJBd && !bRJBp) {
					bRJBp = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {// if the button is held down
			if (Objects.equals(button, "LScRd")) {
				return LScRd ? true : false;
			} else if (Objects.equals(button, "LScLd")) {
				return LScLd ? true : false;
			} else if (Objects.equals(button, "LScUd")) {
				return LScUd ? true : false;
			} else if (Objects.equals(button, "LScDd")) {
				return LScDd ? true : false;
			} else if (Objects.equals(button, "RScRd")) {
				return RScRd ? true : false;
			} else if (Objects.equals(button, "RScLd")) {
				return RScLd ? true : false;
			} else if (Objects.equals(button, "RScUd")) {
				return RScUd ? true : false;
			} else if (Objects.equals(button, "RScDd")) {
				return RScDd ? true : false;
			} else if (Objects.equals(button, "bRd")) {
				return bRd ? true : false;
			} else if (Objects.equals(button, "bLd")) {
				return bLd ? true : false;
			} else if (Objects.equals(button, "bUd")) {
				return bUd ? true : false;
			} else if (Objects.equals(button, "bDd")) {
				return bDd ? true : false;
			} else if (Objects.equals(button, "b_5d")) {
				return b_5d ? true : false;
			} else if (Objects.equals(button, "b_11d")) {
				return b_11d ? true : false;
			} else if (Objects.equals(button, "b_12d")) {
				return b_12d ? true : false;
			} else if (Objects.equals(button, "b_13d")) {
				return b_13d ? true : false;
			} else if (Objects.equals(button, "b_14d")) {
				return b_14d ? true : false;
			} else if (Objects.equals(button, "bSeld")) {
				return bSeld ? true : false;
			} else if (Objects.equals(button, "bStd")) {
				return bStd ? true : false;
			} else if (Objects.equals(button, "bLTd")) {
				return bLTd ? true : false;
			} else if (Objects.equals(button, "bRTd")) {
				return bRTd ? true : false;
			} else if (Objects.equals(button, "bLPd")) {
				return bLPd ? true : false;
			} else if (Objects.equals(button, "bRPd")) {
				return bRPd ? true : false;
			} else if (Objects.equals(button, "bLJBd")) {
				return bLJBd ? true : false;
			} else if (Objects.equals(button, "bRJBd")) {
				return bRJBd ? true : false;
			} else
				return false;
		}

	}

	private static boolean checkControllerTwoButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd2")) {
				if (LScRd2 && !LScRp2) {
					LScRp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd2")) {
				if (LScDd2 && !LScDp2) {
					LScDp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd2")) {
				if (LScLd2 && !LScLp2) {
					LScLp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd2")) {
				if (LScUd2 && !LScUp2) {
					LScUp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd2")) {
				if (RScRd2 && !RScRp2) {
					RScRp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd2")) {
				if (RScDd2 && !RScDp2) {
					RScDp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd2")) {
				if (RScLd2 && !RScLp2) {
					RScLp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd2")) {
				if (RScUd2 && !RScUp2) {
					RScUp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d2")) {
				if (b_5d2 && !b_5p2) {
					b_5p2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d2")) {
				if (b_11d2 && !b_11p2) {
					b_11p2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d2")) {
				if (b_12d2 && !b_12p2) {
					b_12p2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d2")) {
				if (b_13d2 && !b_13p2) {
					b_13p2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d2")) {
				if (b_14d2 && !b_14p2) {
					b_14p2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd2")) {
				if (bRd2 && !bRp2) {
					bRp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd2")) {
				if (bLd2 && !bLp2) {
					bLp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd2")) {
				if (bUd2 && !bUp2) {
					bUp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd2")) {
				if (bDd2 && !bDp2) {
					bDp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld2")) {
				if (bSeld2 && !bSelp2) {
					bSelp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd2")) {
				if (bStd2 && !bStp2) {
					bStp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd2")) {
				if (bLTd2 && !bLTp2) {
					bLTp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd2")) {
				if (bRTd2 && !bRTp2) {
					bRTp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd2")) {
				if (bLPd2 && !bLPp2) {
					bLPp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd2")) {
				if (bRPd2 && !bRPp2) {
					bRPp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd2")) {
				if (bLJBd2 && !bLJBp2) {
					bLJBp2 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd2")) {
				if (bRJBd2 && !bRJBp2) {
					bRJBp2 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd2")) {
				return LScRd2 ? true : false;
			}
			if (Objects.equals(button, "LScLd2")) {
				return LScLd2 ? true : false;
			}
			if (Objects.equals(button, "LScUd2")) {
				return LScUd2 ? true : false;
			}
			if (Objects.equals(button, "LScDd2")) {
				return LScDd2 ? true : false;
			}
			if (Objects.equals(button, "RScRd2")) {
				return RScRd2 ? true : false;
			}
			if (Objects.equals(button, "RScLd2")) {
				return RScLd2 ? true : false;
			}
			if (Objects.equals(button, "RScUd2")) {
				return RScUd2 ? true : false;
			}
			if (Objects.equals(button, "RScDd2")) {
				return RScDd2 ? true : false;
			}
			if (Objects.equals(button, "bRd2")) {// if the button is held down
				return bRd2 ? true : false;
			}
			if (Objects.equals(button, "bLd2")) {// if the button is held down
				return bLd2 ? true : false;
			}
			if (Objects.equals(button, "bUd2")) {// if the button is held down
				return bUd2 ? true : false;
			}
			if (Objects.equals(button, "bDd2")) {// if the button is held down
				return bDd2 ? true : false;
			}
			if (Objects.equals(button, "b_5d2")) {
				return b_5d2 ? true : false;
			}
			if (Objects.equals(button, "b_11d2")) {
				return b_11d2 ? true : false;
			}
			if (Objects.equals(button, "b_12d2")) {
				return b_12d2 ? true : false;
			}
			if (Objects.equals(button, "b_13d2")) {
				return b_13d2 ? true : false;
			}
			if (Objects.equals(button, "b_14d2")) {
				return b_14d2 ? true : false;
			}
			if (Objects.equals(button, "bSeld2")) {// if the button is held down
				return bSeld2 ? true : false;
			}
			if (Objects.equals(button, "bStd2")) {// if the button is held down
				return bStd2 ? true : false;
			}
			if (Objects.equals(button, "bLTd2")) {// if the button is held down
				return bLTd2 ? true : false;
			}
			if (Objects.equals(button, "bRTd2")) {// if the button is held down
				return bRTd2 ? true : false;
			}
			if (Objects.equals(button, "bLPd2")) {// if the button is held down
				return bLPd2 ? true : false;
			}
			if (Objects.equals(button, "bRPd2")) {// if the button is held down
				return bRPd2 ? true : false;
			}
			if (Objects.equals(button, "bLJBd2")) {// if the button is held down
				return bLJBd2 ? true : false;
			}
			if (Objects.equals(button, "bRJBd2")) {// if the button is held down
				return bRJBd2 ? true : false;
			} else
				return false;
		}
	}

	private static boolean checkControllerThreeButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd3")) {
				if (LScRd3 && !LScRp3) {
					LScRp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd3")) {
				if (LScDd3 && !LScDp3) {
					LScDp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd3")) {
				if (LScLd3 && !LScLp3) {
					LScLp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd3")) {
				if (LScUd3 && !LScUp3) {
					LScUp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd3")) {
				if (RScRd3 && !RScRp3) {
					RScRp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd3")) {
				if (RScDd3 && !RScDp3) {
					RScDp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd3")) {
				if (RScLd3 && !RScLp3) {
					RScLp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd3")) {
				if (RScUd3 && !RScUp3) {
					RScUp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d3")) {
				if (b_5d3 && !b_5p3) {
					b_5p3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d3")) {
				if (b_11d3 && !b_11p3) {
					b_11p3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d3")) {
				if (b_12d3 && !b_12p3) {
					b_12p3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d3")) {
				if (b_13d3 && !b_13p3) {
					b_13p3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d3")) {
				if (b_14d3 && !b_14p3) {
					b_14p3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd3")) {
				if (bRd3 && !bRp3) {
					bRp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd3")) {
				if (bLd3 && !bLp3) {
					bLp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd3")) {
				if (bUd3 && !bUp3) {
					bUp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd3")) {
				if (bDd3 && !bDp3) {
					bDp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld3")) {
				if (bSeld3 && !bSelp3) {
					bSelp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd3")) {
				if (bStd3 && !bStp3) {
					bStp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd3")) {
				if (bLTd3 && !bLTp3) {
					bLTp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd3")) {
				if (bRTd3 && !bRTp3) {
					bRTp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd3")) {
				if (bLPd3 && !bLPp3) {
					bLPp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd3")) {
				if (bRPd3 && !bRPp3) {
					bRPp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd3")) {
				if (bLJBd3 && !bLJBp3) {
					bLJBp3 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd3")) {
				if (bRJBd3 && !bRJBp3) {
					bRJBp3 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd3"))
				return LScRd3 ? true : false;
			if (Objects.equals(button, "LScLd3"))
				return LScLd3 ? true : false;
			if (Objects.equals(button, "LScUd3"))
				return LScUd3 ? true : false;
			if (Objects.equals(button, "LScDd3"))
				return LScDd3 ? true : false;
			if (Objects.equals(button, "RScRd3"))
				return RScRd3 ? true : false;
			if (Objects.equals(button, "RScLd3"))
				return RScLd3 ? true : false;
			if (Objects.equals(button, "RScUd3"))
				return RScUd3 ? true : false;
			if (Objects.equals(button, "RScDd3"))
				return RScDd3 ? true : false;
			if (Objects.equals(button, "bRd3"))// if the button is held down
				return bRd3 ? true : false;
			if (Objects.equals(button, "bLd3"))// if the button is held down
				return bLd3 ? true : false;
			if (Objects.equals(button, "bUd3"))// if the button is held down
				return bUd3 ? true : false;
			if (Objects.equals(button, "bDd3"))// if the button is held down
				return bDd3 ? true : false;
			if (Objects.equals(button, "b_5d3"))
				return b_5d3 ? true : false;
			if (Objects.equals(button, "b_11d3"))
				return b_11d3 ? true : false;
			if (Objects.equals(button, "b_12d3"))
				return b_12d3 ? true : false;
			if (Objects.equals(button, "b_13d3"))
				return b_13d3 ? true : false;
			if (Objects.equals(button, "b_14d3"))
				return b_14d3 ? true : false;
			if (Objects.equals(button, "bSeld3"))// if the button is held down
				return bSeld3 ? true : false;
			if (Objects.equals(button, "bStd3"))// if the button is held down
				return bStd3 ? true : false;
			if (Objects.equals(button, "bLTd3"))// if the button is held down
				return bLTd3 ? true : false;
			if (Objects.equals(button, "bRTd3"))// if the button is held down
				return bRTd3 ? true : false;
			if (Objects.equals(button, "bLPd3"))// if the button is held down
				return bLPd3 ? true : false;
			if (Objects.equals(button, "bRPd3"))// if the button is held down
				return bRPd3 ? true : false;
			if (Objects.equals(button, "bLJBd3"))// if the button is held down
				return bLJBd3 ? true : false;
			if (Objects.equals(button, "bRJBd3"))// if the button is held down
				return bRJBd3 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerFourButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd4")) {
				if (LScRd4 && !LScRp4) {
					LScRp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd4")) {
				if (LScDd4 && !LScDp4) {
					LScDp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd4")) {
				if (LScLd4 && !LScLp4) {
					LScLp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd4")) {
				if (LScUd4 && !LScUp4) {
					LScUp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd4")) {
				if (RScRd4 && !RScRp4) {
					RScRp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd4")) {
				if (RScDd4 && !RScDp4) {
					RScDp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd4")) {
				if (RScLd4 && !RScLp4) {
					RScLp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd4")) {
				if (RScUd4 && !RScUp4) {
					RScUp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d4")) {
				if (b_5d4 && !b_5p4) {
					b_5p4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d4")) {
				if (b_11d4 && !b_11p4) {
					b_11p4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d4")) {
				if (b_12d4 && !b_12p4) {
					b_12p4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d4")) {
				if (b_13d4 && !b_13p4) {
					b_13p4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d4")) {
				if (b_14d4 && !b_14p4) {
					b_14p4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd4")) {
				if (bRd4 && !bRp4) {
					bRp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd4")) {
				if (bLd4 && !bLp4) {
					bLp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd4")) {
				if (bUd4 && !bUp4) {
					bUp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd4")) {
				if (bDd4 && !bDp4) {
					bDp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld4")) {
				if (bSeld4 && !bSelp4) {
					bSelp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd4")) {
				if (bStd4 && !bStp4) {
					bStp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd4")) {
				if (bLTd4 && !bLTp4) {
					bLTp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd4")) {
				if (bRTd4 && !bRTp4) {
					bRTp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd4")) {
				if (bLPd4 && !bLPp4) {
					bLPp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd4")) {
				if (bRPd4 && !bRPp4) {
					bRPp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd4")) {
				if (bLJBd4 && !bLJBp4) {
					bLJBp4 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd4")) {
				if (bRJBd4 && !bRJBp4) {
					bRJBp4 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd4"))
				return LScRd4 ? true : false;
			if (Objects.equals(button, "LScLd4"))
				return LScLd4 ? true : false;
			if (Objects.equals(button, "LScUd4"))
				return LScUd4 ? true : false;
			if (Objects.equals(button, "LScDd4"))
				return LScDd4 ? true : false;
			if (Objects.equals(button, "RScRd4"))
				return RScRd4 ? true : false;
			if (Objects.equals(button, "RScLd4"))
				return RScLd4 ? true : false;
			if (Objects.equals(button, "RScUd4"))
				return RScUd4 ? true : false;
			if (Objects.equals(button, "RScDd4"))
				return RScDd4 ? true : false;
			if (Objects.equals(button, "bRd4"))// if the button is held down
				return bRd4 ? true : false;
			if (Objects.equals(button, "bLd4"))// if the button is held down
				return bLd4 ? true : false;
			if (Objects.equals(button, "bUd4"))// if the button is held down
				return bUd4 ? true : false;
			if (Objects.equals(button, "bDd4"))// if the button is held down
				return bDd4 ? true : false;
			if (Objects.equals(button, "b_5d4"))
				return b_5d4 ? true : false;
			if (Objects.equals(button, "b_11d4"))
				return b_11d4 ? true : false;
			if (Objects.equals(button, "b_12d4"))
				return b_12d4 ? true : false;
			if (Objects.equals(button, "b_13d4"))
				return b_13d4 ? true : false;
			if (Objects.equals(button, "b_14d4"))
				return b_14d4 ? true : false;
			if (Objects.equals(button, "bSeld4"))// if the button is held down
				return bSeld4 ? true : false;
			if (Objects.equals(button, "bStd4"))// if the button is held down
				return bStd4 ? true : false;
			if (Objects.equals(button, "bLTd4"))// if the button is held down
				return bLTd4 ? true : false;
			if (Objects.equals(button, "bRTd4"))// if the button is held down
				return bRTd4 ? true : false;
			if (Objects.equals(button, "bLPd4"))// if the button is held down
				return bLPd4 ? true : false;
			if (Objects.equals(button, "bRPd4"))// if the button is held down
				return bRPd4 ? true : false;
			if (Objects.equals(button, "bLJBd4"))// if the button is held down
				return bLJBd4 ? true : false;
			if (Objects.equals(button, "bRJBd4"))// if the button is held down
				return bRJBd4 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerFiveButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd5")) {
				if (LScRd5 && !LScRp5) {
					LScRp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd5")) {
				if (LScDd5 && !LScDp5) {
					LScDp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd5")) {
				if (LScLd5 && !LScLp5) {
					LScLp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd5")) {
				if (LScUd5 && !LScUp5) {
					LScUp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd5")) {
				if (RScRd5 && !RScRp5) {
					RScRp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd5")) {
				if (RScDd5 && !RScDp5) {
					RScDp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd5")) {
				if (RScLd5 && !RScLp5) {
					RScLp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd5")) {
				if (RScUd5 && !RScUp5) {
					RScUp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d5")) {
				if (b_5d5 && !b_5p5) {
					b_5p5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d5")) {
				if (b_11d5 && !b_11p5) {
					b_11p5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d5")) {
				if (b_12d5 && !b_12p5) {
					b_12p5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d5")) {
				if (b_13d5 && !b_13p5) {
					b_13p5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d5")) {
				if (b_14d5 && !b_14p5) {
					b_14p5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd5")) {
				if (bRd5 && !bRp5) {
					bRp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd5")) {
				if (bLd5 && !bLp5) {
					bLp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd5")) {
				if (bUd5 && !bUp5) {
					bUp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd5")) {
				if (bDd5 && !bDp5) {
					bDp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld5")) {
				if (bSeld5 && !bSelp5) {
					bSelp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd5")) {
				if (bStd5 && !bStp5) {
					bStp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd5")) {
				if (bLTd5 && !bLTp5) {
					bLTp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd5")) {
				if (bRTd5 && !bRTp5) {
					bRTp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd5")) {
				if (bLPd5 && !bLPp5) {
					bLPp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd5")) {
				if (bRPd5 && !bRPp5) {
					bRPp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd5")) {
				if (bLJBd5 && !bLJBp5) {
					bLJBp5 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd5")) {
				if (bRJBd5 && !bRJBp5) {
					bRJBp5 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd5"))
				return LScRd5 ? true : false;
			if (Objects.equals(button, "LScLd5"))
				return LScLd5 ? true : false;
			if (Objects.equals(button, "LScUd5"))
				return LScUd5 ? true : false;
			if (Objects.equals(button, "LScDd5"))
				return LScDd5 ? true : false;
			if (Objects.equals(button, "RScRd5"))
				return RScRd5 ? true : false;
			if (Objects.equals(button, "RScLd5"))
				return RScLd5 ? true : false;
			if (Objects.equals(button, "RScUd5"))
				return RScUd5 ? true : false;
			if (Objects.equals(button, "RScDd5"))
				return RScDd5 ? true : false;
			if (Objects.equals(button, "bRd5"))// if the button is held down
				return bRd5 ? true : false;
			if (Objects.equals(button, "bLd5"))// if the button is held down
				return bLd5 ? true : false;
			if (Objects.equals(button, "bUd5"))// if the button is held down
				return bUd5 ? true : false;
			if (Objects.equals(button, "bDd5"))// if the button is held down
				return bDd5 ? true : false;
			if (Objects.equals(button, "b_5d5"))
				return b_5d5 ? true : false;
			if (Objects.equals(button, "b_11d5"))
				return b_11d5 ? true : false;
			if (Objects.equals(button, "b_12d5"))
				return b_12d5 ? true : false;
			if (Objects.equals(button, "b_13d5"))
				return b_13d5 ? true : false;
			if (Objects.equals(button, "b_14d5"))
				return b_14d5 ? true : false;
			if (Objects.equals(button, "bSeld5"))// if the button is held down
				return bSeld5 ? true : false;
			if (Objects.equals(button, "bStd5"))// if the button is held down
				return bStd5 ? true : false;
			if (Objects.equals(button, "bLTd5"))// if the button is held down
				return bLTd5 ? true : false;
			if (Objects.equals(button, "bRTd5"))// if the button is held down
				return bRTd5 ? true : false;
			if (Objects.equals(button, "bLPd5"))// if the button is held down
				return bLPd5 ? true : false;
			if (Objects.equals(button, "bRPd5"))// if the button is held down
				return bRPd5 ? true : false;
			if (Objects.equals(button, "bLJBd5"))// if the button is held down
				return bLJBd5 ? true : false;
			if (Objects.equals(button, "bRJBd5"))// if the button is held down
				return bRJBd5 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerSixButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd6")) {
				if (LScRd6 && !LScRp6) {
					LScRp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd6")) {
				if (LScDd6 && !LScDp6) {
					LScDp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd6")) {
				if (LScLd6 && !LScLp6) {
					LScLp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd6")) {
				if (LScUd6 && !LScUp6) {
					LScUp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd6")) {
				if (RScRd6 && !RScRp6) {
					RScRp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd6")) {
				if (RScDd6 && !RScDp6) {
					RScDp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd6")) {
				if (RScLd6 && !RScLp6) {
					RScLp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd6")) {
				if (RScUd6 && !RScUp6) {
					RScUp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d6")) {
				if (b_5d6 && !b_5p6) {
					b_5p6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d6")) {
				if (b_11d6 && !b_11p6) {
					b_11p6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d6")) {
				if (b_12d6 && !b_12p6) {
					b_12p6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d6")) {
				if (b_13d6 && !b_13p6) {
					b_13p6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d6")) {
				if (b_14d6 && !b_14p6) {
					b_14p6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd6")) {
				if (bRd6 && !bRp6) {
					bRp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd6")) {
				if (bLd6 && !bLp6) {
					bLp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd6")) {
				if (bUd6 && !bUp6) {
					bUp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd6")) {
				if (bDd6 && !bDp6) {
					bDp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld6")) {
				if (bSeld6 && !bSelp6) {
					bSelp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd6")) {
				if (bStd6 && !bStp6) {
					bStp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd6")) {
				if (bLTd6 && !bLTp6) {
					bLTp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd6")) {
				if (bRTd6 && !bRTp6) {
					bRTp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd6")) {
				if (bLPd6 && !bLPp6) {
					bLPp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd6")) {
				if (bRPd6 && !bRPp6) {
					bRPp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd6")) {
				if (bLJBd6 && !bLJBp6) {
					bLJBp6 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd6")) {
				if (bRJBd6 && !bRJBp6) {
					bRJBp6 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd6"))
				return LScRd6 ? true : false;
			if (Objects.equals(button, "LScLd6"))
				return LScLd6 ? true : false;
			if (Objects.equals(button, "LScUd6"))
				return LScUd6 ? true : false;
			if (Objects.equals(button, "LScDd6"))
				return LScDd6 ? true : false;
			if (Objects.equals(button, "RScRd6"))
				return RScRd6 ? true : false;
			if (Objects.equals(button, "RScLd6"))
				return RScLd6 ? true : false;
			if (Objects.equals(button, "RScUd6"))
				return RScUd6 ? true : false;
			if (Objects.equals(button, "RScDd6"))
				return RScDd6 ? true : false;
			if (Objects.equals(button, "bRd6"))// if the button is held down
				return bRd6 ? true : false;
			if (Objects.equals(button, "bLd6"))// if the button is held down
				return bLd6 ? true : false;
			if (Objects.equals(button, "bUd6"))// if the button is held down
				return bUd6 ? true : false;
			if (Objects.equals(button, "bDd6"))// if the button is held down
				return bDd6 ? true : false;
			if (Objects.equals(button, "b_5d6"))
				return b_5d6 ? true : false;
			if (Objects.equals(button, "b_11d6"))
				return b_11d6 ? true : false;
			if (Objects.equals(button, "b_12d6"))
				return b_12d6 ? true : false;
			if (Objects.equals(button, "b_13d6"))
				return b_13d6 ? true : false;
			if (Objects.equals(button, "b_14d6"))
				return b_14d6 ? true : false;
			if (Objects.equals(button, "bSeld6"))// if the button is held down
				return bSeld6 ? true : false;
			if (Objects.equals(button, "bStd6"))// if the button is held down
				return bStd6 ? true : false;
			if (Objects.equals(button, "bLTd6"))// if the button is held down
				return bLTd6 ? true : false;
			if (Objects.equals(button, "bRTd6"))// if the button is held down
				return bRTd6 ? true : false;
			if (Objects.equals(button, "bLPd6"))// if the button is held down
				return bLPd6 ? true : false;
			if (Objects.equals(button, "bRPd6"))// if the button is held down
				return bRPd6 ? true : false;
			if (Objects.equals(button, "bLJBd6"))// if the button is held down
				return bLJBd6 ? true : false;
			if (Objects.equals(button, "bRJBd6"))// if the button is held down
				return bRJBd6 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerSevenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd7")) {
				if (LScRd7 && !LScRp7) {
					LScRp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd7")) {
				if (LScDd7 && !LScDp7) {
					LScDp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd7")) {
				if (LScLd7 && !LScLp7) {
					LScLp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd7")) {
				if (LScUd7 && !LScUp7) {
					LScUp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd7")) {
				if (RScRd7 && !RScRp7) {
					RScRp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd7")) {
				if (RScDd7 && !RScDp7) {
					RScDp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd7")) {
				if (RScLd7 && !RScLp7) {
					RScLp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd7")) {
				if (RScUd7 && !RScUp7) {
					RScUp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d7")) {
				if (b_5d7 && !b_5p7) {
					b_5p7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d7")) {
				if (b_11d7 && !b_11p7) {
					b_11p7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d7")) {
				if (b_12d7 && !b_12p7) {
					b_12p7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d7")) {
				if (b_13d7 && !b_13p7) {
					b_13p7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d7")) {
				if (b_14d7 && !b_14p7) {
					b_14p7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd7")) {
				if (bRd7 && !bRp7) {
					bRp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd7")) {
				if (bLd7 && !bLp7) {
					bLp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd7")) {
				if (bUd7 && !bUp7) {
					bUp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd7")) {
				if (bDd7 && !bDp7) {
					bDp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld7")) {
				if (bSeld7 && !bSelp7) {
					bSelp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd7")) {
				if (bStd7 && !bStp7) {
					bStp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd7")) {
				if (bLTd7 && !bLTp7) {
					bLTp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd7")) {
				if (bRTd7 && !bRTp7) {
					bRTp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd7")) {
				if (bLPd7 && !bLPp7) {
					bLPp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd7")) {
				if (bRPd7 && !bRPp7) {
					bRPp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd7")) {
				if (bLJBd7 && !bLJBp7) {
					bLJBp7 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd7")) {
				if (bRJBd7 && !bRJBp7) {
					bRJBp7 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd7"))
				return LScRd7 ? true : false;
			if (Objects.equals(button, "LScLd7"))
				return LScLd7 ? true : false;
			if (Objects.equals(button, "LScUd7"))
				return LScUd7 ? true : false;
			if (Objects.equals(button, "LScDd7"))
				return LScDd7 ? true : false;
			if (Objects.equals(button, "RScRd7"))
				return RScRd7 ? true : false;
			if (Objects.equals(button, "RScLd7"))
				return RScLd7 ? true : false;
			if (Objects.equals(button, "RScUd7"))
				return RScUd7 ? true : false;
			if (Objects.equals(button, "RScDd7"))
				return RScDd7 ? true : false;
			if (Objects.equals(button, "bRd7"))// if the button is held down
				return bRd7 ? true : false;
			if (Objects.equals(button, "bLd7"))// if the button is held down
				return bLd7 ? true : false;
			if (Objects.equals(button, "bUd7"))// if the button is held down
				return bUd7 ? true : false;
			if (Objects.equals(button, "bDd7"))// if the button is held down
				return bDd7 ? true : false;
			if (Objects.equals(button, "b_5d7"))
				return b_5d7 ? true : false;
			if (Objects.equals(button, "b_11d7"))
				return b_11d7 ? true : false;
			if (Objects.equals(button, "b_12d7"))
				return b_12d7 ? true : false;
			if (Objects.equals(button, "b_13d7"))
				return b_13d7 ? true : false;
			if (Objects.equals(button, "b_14d7"))
				return b_14d7 ? true : false;
			if (Objects.equals(button, "bSeld7"))// if the button is held down
				return bSeld7 ? true : false;
			if (Objects.equals(button, "bStd7"))// if the button is held down
				return bStd7 ? true : false;
			if (Objects.equals(button, "bLTd7"))// if the button is held down
				return bLTd7 ? true : false;
			if (Objects.equals(button, "bRTd7"))// if the button is held down
				return bRTd7 ? true : false;
			if (Objects.equals(button, "bLPd7"))// if the button is held down
				return bLPd7 ? true : false;
			if (Objects.equals(button, "bRPd7"))// if the button is held down
				return bRPd7 ? true : false;
			if (Objects.equals(button, "bLJBd7"))// if the button is held down
				return bLJBd7 ? true : false;
			if (Objects.equals(button, "bRJBd7"))// if the button is held down
				return bRJBd7 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerEightButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd8")) {
				if (LScRd8 && !LScRp8) {
					LScRp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd8")) {
				if (LScDd8 && !LScDp8) {
					LScDp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd8")) {
				if (LScLd8 && !LScLp8) {
					LScLp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd8")) {
				if (LScUd8 && !LScUp8) {
					LScUp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd8")) {
				if (RScRd8 && !RScRp8) {
					RScRp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd8")) {
				if (RScDd8 && !RScDp8) {
					RScDp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd8")) {
				if (RScLd8 && !RScLp8) {
					RScLp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd8")) {
				if (RScUd8 && !RScUp8) {
					RScUp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d8")) {
				if (b_5d8 && !b_5p8) {
					b_5p8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d8")) {
				if (b_11d8 && !b_11p8) {
					b_11p8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d8")) {
				if (b_12d8 && !b_12p8) {
					b_12p8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d8")) {
				if (b_13d8 && !b_13p8) {
					b_13p8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d8")) {
				if (b_14d8 && !b_14p8) {
					b_14p8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd8")) {
				if (bRd8 && !bRp8) {
					bRp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd8")) {
				if (bLd8 && !bLp8) {
					bLp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd8")) {
				if (bUd8 && !bUp8) {
					bUp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd8")) {
				if (bDd8 && !bDp8) {
					bDp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld8")) {
				if (bSeld8 && !bSelp8) {
					bSelp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd8")) {
				if (bStd8 && !bStp8) {
					bStp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd8")) {
				if (bLTd8 && !bLTp8) {
					bLTp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd8")) {
				if (bRTd8 && !bRTp8) {
					bRTp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd8")) {
				if (bLPd8 && !bLPp8) {
					bLPp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd8")) {
				if (bRPd8 && !bRPp8) {
					bRPp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd8")) {
				if (bLJBd8 && !bLJBp8) {
					bLJBp8 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd8")) {
				if (bRJBd8 && !bRJBp8) {
					bRJBp8 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd8"))
				return LScRd8 ? true : false;
			if (Objects.equals(button, "LScLd8"))
				return LScLd8 ? true : false;
			if (Objects.equals(button, "LScUd8"))
				return LScUd8 ? true : false;
			if (Objects.equals(button, "LScDd8"))
				return LScDd8 ? true : false;
			if (Objects.equals(button, "RScRd8"))
				return RScRd8 ? true : false;
			if (Objects.equals(button, "RScLd8"))
				return RScLd8 ? true : false;
			if (Objects.equals(button, "RScUd8"))
				return RScUd8 ? true : false;
			if (Objects.equals(button, "RScDd8"))
				return RScDd8 ? true : false;
			if (Objects.equals(button, "bRd8"))// if the button is held down
				return bRd8 ? true : false;
			if (Objects.equals(button, "bLd8"))// if the button is held down
				return bLd8 ? true : false;
			if (Objects.equals(button, "bUd8"))// if the button is held down
				return bUd8 ? true : false;
			if (Objects.equals(button, "bDd8"))// if the button is held down
				return bDd8 ? true : false;
			if (Objects.equals(button, "b_5d8"))
				return b_5d8 ? true : false;
			if (Objects.equals(button, "b_11d8"))
				return b_11d8 ? true : false;
			if (Objects.equals(button, "b_12d8"))
				return b_12d8 ? true : false;
			if (Objects.equals(button, "b_13d8"))
				return b_13d8 ? true : false;
			if (Objects.equals(button, "b_14d8"))
				return b_14d8 ? true : false;
			if (Objects.equals(button, "bSeld8"))// if the button is held down
				return bSeld8 ? true : false;
			if (Objects.equals(button, "bStd8"))// if the button is held down
				return bStd8 ? true : false;
			if (Objects.equals(button, "bLTd8"))// if the button is held down
				return bLTd8 ? true : false;
			if (Objects.equals(button, "bRTd8"))// if the button is held down
				return bRTd8 ? true : false;
			if (Objects.equals(button, "bLPd8"))// if the button is held down
				return bLPd8 ? true : false;
			if (Objects.equals(button, "bRPd8"))// if the button is held down
				return bRPd8 ? true : false;
			if (Objects.equals(button, "bLJBd8"))// if the button is held down
				return bLJBd8 ? true : false;
			if (Objects.equals(button, "bRJBd8"))// if the button is held down
				return bRJBd8 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerNineButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd9")) {
				if (LScRd9 && !LScRp9) {
					LScRp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd9")) {
				if (LScDd9 && !LScDp9) {
					LScDp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd9")) {
				if (LScLd9 && !LScLp9) {
					LScLp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd9")) {
				if (LScUd9 && !LScUp9) {
					LScUp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd9")) {
				if (RScRd9 && !RScRp9) {
					RScRp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd9")) {
				if (RScDd9 && !RScDp9) {
					RScDp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd9")) {
				if (RScLd9 && !RScLp9) {
					RScLp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd9")) {
				if (RScUd9 && !RScUp9) {
					RScUp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d9")) {
				if (b_5d9 && !b_5p9) {
					b_5p9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d9")) {
				if (b_11d9 && !b_11p9) {
					b_11p9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d9")) {
				if (b_12d9 && !b_12p9) {
					b_12p9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d9")) {
				if (b_13d9 && !b_13p9) {
					b_13p9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d9")) {
				if (b_14d9 && !b_14p9) {
					b_14p9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd9")) {
				if (bRd9 && !bRp9) {
					bRp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd9")) {
				if (bLd9 && !bLp9) {
					bLp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd9")) {
				if (bUd9 && !bUp9) {
					bUp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd9")) {
				if (bDd9 && !bDp9) {
					bDp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld9")) {
				if (bSeld9 && !bSelp9) {
					bSelp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd9")) {
				if (bStd9 && !bStp9) {
					bStp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd9")) {
				if (bLTd9 && !bLTp9) {
					bLTp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd9")) {
				if (bRTd9 && !bRTp9) {
					bRTp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd9")) {
				if (bLPd9 && !bLPp9) {
					bLPp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd9")) {
				if (bRPd9 && !bRPp9) {
					bRPp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd9")) {
				if (bLJBd9 && !bLJBp9) {
					bLJBp9 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd9")) {
				if (bRJBd9 && !bRJBp9) {
					bRJBp9 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd9"))
				return LScRd9 ? true : false;
			if (Objects.equals(button, "LScLd9"))
				return LScLd9 ? true : false;
			if (Objects.equals(button, "LScUd9"))
				return LScUd9 ? true : false;
			if (Objects.equals(button, "LScDd9"))
				return LScDd9 ? true : false;
			if (Objects.equals(button, "RScRd9"))
				return RScRd9 ? true : false;
			if (Objects.equals(button, "RScLd9"))
				return RScLd9 ? true : false;
			if (Objects.equals(button, "RScUd9"))
				return RScUd9 ? true : false;
			if (Objects.equals(button, "RScDd9"))
				return RScDd9 ? true : false;
			if (Objects.equals(button, "bRd9"))// if the button is held down
				return bRd9 ? true : false;
			if (Objects.equals(button, "bLd9"))// if the button is held down
				return bLd9 ? true : false;
			if (Objects.equals(button, "bUd9"))// if the button is held down
				return bUd9 ? true : false;
			if (Objects.equals(button, "bDd9"))// if the button is held down
				return bDd9 ? true : false;
			if (Objects.equals(button, "b_5d9"))
				return b_5d9 ? true : false;
			if (Objects.equals(button, "b_11d9"))
				return b_11d9 ? true : false;
			if (Objects.equals(button, "b_12d9"))
				return b_12d9 ? true : false;
			if (Objects.equals(button, "b_13d9"))
				return b_13d9 ? true : false;
			if (Objects.equals(button, "b_14d9"))
				return b_14d9 ? true : false;
			if (Objects.equals(button, "bSeld9"))// if the button is held down
				return bSeld9 ? true : false;
			if (Objects.equals(button, "bStd9"))// if the button is held down
				return bStd9 ? true : false;
			if (Objects.equals(button, "bLTd9"))// if the button is held down
				return bLTd9 ? true : false;
			if (Objects.equals(button, "bRTd9"))// if the button is held down
				return bRTd9 ? true : false;
			if (Objects.equals(button, "bLPd9"))// if the button is held down
				return bLPd9 ? true : false;
			if (Objects.equals(button, "bRPd9"))// if the button is held down
				return bRPd9 ? true : false;
			if (Objects.equals(button, "bLJBd9"))// if the button is held down
				return bLJBd9 ? true : false;
			if (Objects.equals(button, "bRJBd9"))// if the button is held down
				return bRJBd9 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd10")) {
				if (LScRd10 && !LScRp10) {
					LScRp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd10")) {
				if (LScDd10 && !LScDp10) {
					LScDp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd10")) {
				if (LScLd10 && !LScLp10) {
					LScLp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd10")) {
				if (LScUd10 && !LScUp10) {
					LScUp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd10")) {
				if (RScRd10 && !RScRp10) {
					RScRp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd10")) {
				if (RScDd10 && !RScDp10) {
					RScDp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd10")) {
				if (RScLd10 && !RScLp10) {
					RScLp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd10")) {
				if (RScUd10 && !RScUp10) {
					RScUp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d10")) {
				if (b_5d10 && !b_5p10) {
					b_5p10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d10")) {
				if (b_11d10 && !b_11p10) {
					b_11p10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d10")) {
				if (b_12d10 && !b_12p10) {
					b_12p10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d10")) {
				if (b_13d10 && !b_13p10) {
					b_13p10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d10")) {
				if (b_14d10 && !b_14p10) {
					b_14p10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd10")) {
				if (bRd10 && !bRp10) {
					bRp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd10")) {
				if (bLd10 && !bLp10) {
					bLp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd10")) {
				if (bUd10 && !bUp10) {
					bUp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd10")) {
				if (bDd10 && !bDp10) {
					bDp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld10")) {
				if (bSeld10 && !bSelp10) {
					bSelp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd10")) {
				if (bStd10 && !bStp10) {
					bStp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd10")) {
				if (bLTd10 && !bLTp10) {
					bLTp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd10")) {
				if (bRTd10 && !bRTp10) {
					bRTp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd10")) {
				if (bLPd10 && !bLPp10) {
					bLPp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd10")) {
				if (bRPd10 && !bRPp10) {
					bRPp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd10")) {
				if (bLJBd10 && !bLJBp10) {
					bLJBp10 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd10")) {
				if (bRJBd10 && !bRJBp10) {
					bRJBp10 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd10"))
				return LScRd10 ? true : false;
			if (Objects.equals(button, "LScLd10"))
				return LScLd10 ? true : false;
			if (Objects.equals(button, "LScUd10"))
				return LScUd10 ? true : false;
			if (Objects.equals(button, "LScDd10"))
				return LScDd10 ? true : false;
			if (Objects.equals(button, "RScRd10"))
				return RScRd10 ? true : false;
			if (Objects.equals(button, "RScLd10"))
				return RScLd10 ? true : false;
			if (Objects.equals(button, "RScUd10"))
				return RScUd10 ? true : false;
			if (Objects.equals(button, "RScDd10"))
				return RScDd10 ? true : false;
			if (Objects.equals(button, "bRd10"))// if the button is held down
				return bRd10 ? true : false;
			if (Objects.equals(button, "bLd10"))// if the button is held down
				return bLd10 ? true : false;
			if (Objects.equals(button, "bUd10"))// if the button is held down
				return bUd10 ? true : false;
			if (Objects.equals(button, "bDd10"))// if the button is held down
				return bDd10 ? true : false;
			if (Objects.equals(button, "b_5d10"))
				return b_5d10 ? true : false;
			if (Objects.equals(button, "b_11d10"))
				return b_11d10 ? true : false;
			if (Objects.equals(button, "b_12d10"))
				return b_12d10 ? true : false;
			if (Objects.equals(button, "b_13d10"))
				return b_13d10 ? true : false;
			if (Objects.equals(button, "b_14d10"))
				return b_14d10 ? true : false;
			if (Objects.equals(button, "bSeld10"))// if the button is held down
				return bSeld10 ? true : false;
			if (Objects.equals(button, "bStd10"))// if the button is held down
				return bStd10 ? true : false;
			if (Objects.equals(button, "bLTd10"))// if the button is held down
				return bLTd10 ? true : false;
			if (Objects.equals(button, "bRTd10"))// if the button is held down
				return bRTd10 ? true : false;
			if (Objects.equals(button, "bLPd10"))// if the button is held down
				return bLPd10 ? true : false;
			if (Objects.equals(button, "bRPd10"))// if the button is held down
				return bRPd10 ? true : false;
			if (Objects.equals(button, "bLJBd10"))// if the button is held down
				return bLJBd10 ? true : false;
			if (Objects.equals(button, "bRJBd10"))// if the button is held down
				return bRJBd10 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerElevenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd11")) {
				if (LScRd11 && !LScRp11) {
					LScRp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd11")) {
				if (LScDd11 && !LScDp11) {
					LScDp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd11")) {
				if (LScLd11 && !LScLp11) {
					LScLp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd11")) {
				if (LScUd11 && !LScUp11) {
					LScUp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd11")) {
				if (RScRd11 && !RScRp11) {
					RScRp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd11")) {
				if (RScDd11 && !RScDp11) {
					RScDp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd11")) {
				if (RScLd11 && !RScLp11) {
					RScLp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd11")) {
				if (RScUd11 && !RScUp11) {
					RScUp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d11")) {
				if (b_5d11 && !b_5p11) {
					b_5p11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d11")) {
				if (b_11d11 && !b_11p11) {
					b_11p11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d11")) {
				if (b_12d11 && !b_12p11) {
					b_12p11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d11")) {
				if (b_13d11 && !b_13p11) {
					b_13p11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d11")) {
				if (b_14d11 && !b_14p11) {
					b_14p11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd11")) {
				if (bRd11 && !bRp11) {
					bRp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd11")) {
				if (bLd11 && !bLp11) {
					bLp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd11")) {
				if (bUd11 && !bUp11) {
					bUp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd11")) {
				if (bDd11 && !bDp11) {
					bDp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld11")) {
				if (bSeld11 && !bSelp11) {
					bSelp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd11")) {
				if (bStd11 && !bStp11) {
					bStp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd11")) {
				if (bLTd11 && !bLTp11) {
					bLTp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd11")) {
				if (bRTd11 && !bRTp11) {
					bRTp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd11")) {
				if (bLPd11 && !bLPp11) {
					bLPp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd11")) {
				if (bRPd11 && !bRPp11) {
					bRPp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd11")) {
				if (bLJBd11 && !bLJBp11) {
					bLJBp11 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd11")) {
				if (bRJBd11 && !bRJBp11) {
					bRJBp11 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd11"))
				return LScRd11 ? true : false;
			if (Objects.equals(button, "LScLd11"))
				return LScLd11 ? true : false;
			if (Objects.equals(button, "LScUd11"))
				return LScUd11 ? true : false;
			if (Objects.equals(button, "LScDd11"))
				return LScDd11 ? true : false;
			if (Objects.equals(button, "RScRd11"))
				return RScRd11 ? true : false;
			if (Objects.equals(button, "RScLd11"))
				return RScLd11 ? true : false;
			if (Objects.equals(button, "RScUd11"))
				return RScUd11 ? true : false;
			if (Objects.equals(button, "RScDd11"))
				return RScDd11 ? true : false;
			if (Objects.equals(button, "bRd11"))// if the button is held down
				return bRd11 ? true : false;
			if (Objects.equals(button, "bLd11"))// if the button is held down
				return bLd11 ? true : false;
			if (Objects.equals(button, "bUd11"))// if the button is held down
				return bUd11 ? true : false;
			if (Objects.equals(button, "bDd11"))// if the button is held down
				return bDd11 ? true : false;
			if (Objects.equals(button, "b_5d11"))
				return b_5d11 ? true : false;
			if (Objects.equals(button, "b_11d11"))
				return b_11d11 ? true : false;
			if (Objects.equals(button, "b_12d11"))
				return b_12d11 ? true : false;
			if (Objects.equals(button, "b_13d11"))
				return b_13d11 ? true : false;
			if (Objects.equals(button, "b_14d11"))
				return b_14d11 ? true : false;
			if (Objects.equals(button, "bSeld11"))// if the button is held down
				return bSeld11 ? true : false;
			if (Objects.equals(button, "bStd11"))// if the button is held down
				return bStd11 ? true : false;
			if (Objects.equals(button, "bLTd11"))// if the button is held down
				return bLTd11 ? true : false;
			if (Objects.equals(button, "bRTd11"))// if the button is held down
				return bRTd11 ? true : false;
			if (Objects.equals(button, "bLPd11"))// if the button is held down
				return bLPd11 ? true : false;
			if (Objects.equals(button, "bRPd11"))// if the button is held down
				return bRPd11 ? true : false;
			if (Objects.equals(button, "bLJBd11"))// if the button is held down
				return bLJBd11 ? true : false;
			if (Objects.equals(button, "bRJBd11"))// if the button is held down
				return bRJBd11 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwelveButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd12")) {
				if (LScRd12 && !LScRp12) {
					LScRp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd12")) {
				if (LScDd12 && !LScDp12) {
					LScDp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd12")) {
				if (LScLd12 && !LScLp12) {
					LScLp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd12")) {
				if (LScUd12 && !LScUp12) {
					LScUp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd12")) {
				if (RScRd12 && !RScRp12) {
					RScRp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd12")) {
				if (RScDd12 && !RScDp12) {
					RScDp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd12")) {
				if (RScLd12 && !RScLp12) {
					RScLp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd12")) {
				if (RScUd12 && !RScUp12) {
					RScUp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d12")) {
				if (b_5d12 && !b_5p12) {
					b_5p12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d12")) {
				if (b_11d12 && !b_11p12) {
					b_11p12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d12")) {
				if (b_12d12 && !b_12p12) {
					b_12p12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d12")) {
				if (b_13d12 && !b_13p12) {
					b_13p12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d12")) {
				if (b_14d12 && !b_14p12) {
					b_14p12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd12")) {
				if (bRd12 && !bRp12) {
					bRp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd12")) {
				if (bLd12 && !bLp12) {
					bLp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd12")) {
				if (bUd12 && !bUp12) {
					bUp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd12")) {
				if (bDd12 && !bDp12) {
					bDp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld12")) {
				if (bSeld12 && !bSelp12) {
					bSelp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd12")) {
				if (bStd12 && !bStp12) {
					bStp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd12")) {
				if (bLTd12 && !bLTp12) {
					bLTp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd12")) {
				if (bRTd12 && !bRTp12) {
					bRTp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd12")) {
				if (bLPd12 && !bLPp12) {
					bLPp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd12")) {
				if (bRPd12 && !bRPp12) {
					bRPp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd12")) {
				if (bLJBd12 && !bLJBp12) {
					bLJBp12 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd12")) {
				if (bRJBd12 && !bRJBp12) {
					bRJBp12 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd12"))
				return LScRd12 ? true : false;
			if (Objects.equals(button, "LScLd12"))
				return LScLd12 ? true : false;
			if (Objects.equals(button, "LScUd12"))
				return LScUd12 ? true : false;
			if (Objects.equals(button, "LScDd12"))
				return LScDd12 ? true : false;
			if (Objects.equals(button, "RScRd12"))
				return RScRd12 ? true : false;
			if (Objects.equals(button, "RScLd12"))
				return RScLd12 ? true : false;
			if (Objects.equals(button, "RScUd12"))
				return RScUd12 ? true : false;
			if (Objects.equals(button, "RScDd12"))
				return RScDd12 ? true : false;
			if (Objects.equals(button, "bRd12"))// if the button is held down
				return bRd12 ? true : false;
			if (Objects.equals(button, "bLd12"))// if the button is held down
				return bLd12 ? true : false;
			if (Objects.equals(button, "bUd12"))// if the button is held down
				return bUd12 ? true : false;
			if (Objects.equals(button, "bDd12"))// if the button is held down
				return bDd12 ? true : false;
			if (Objects.equals(button, "b_5d12"))
				return b_5d12 ? true : false;
			if (Objects.equals(button, "b_11d12"))
				return b_11d12 ? true : false;
			if (Objects.equals(button, "b_12d12"))
				return b_12d12 ? true : false;
			if (Objects.equals(button, "b_13d12"))
				return b_13d12 ? true : false;
			if (Objects.equals(button, "b_14d12"))
				return b_14d12 ? true : false;
			if (Objects.equals(button, "bSeld12"))// if the button is held down
				return bSeld12 ? true : false;
			if (Objects.equals(button, "bStd12"))// if the button is held down
				return bStd12 ? true : false;
			if (Objects.equals(button, "bLTd12"))// if the button is held down
				return bLTd12 ? true : false;
			if (Objects.equals(button, "bRTd12"))// if the button is held down
				return bRTd12 ? true : false;
			if (Objects.equals(button, "bLPd12"))// if the button is held down
				return bLPd12 ? true : false;
			if (Objects.equals(button, "bRPd12"))// if the button is held down
				return bRPd12 ? true : false;
			if (Objects.equals(button, "bLJBd12"))// if the button is held down
				return bLJBd12 ? true : false;
			if (Objects.equals(button, "bRJBd12"))// if the button is held down
				return bRJBd12 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerThirteenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd13")) {
				if (LScRd13 && !LScRp13) {
					LScRp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd13")) {
				if (LScDd13 && !LScDp13) {
					LScDp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd13")) {
				if (LScLd13 && !LScLp13) {
					LScLp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd13")) {
				if (LScUd13 && !LScUp13) {
					LScUp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd13")) {
				if (RScRd13 && !RScRp13) {
					RScRp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd13")) {
				if (RScDd13 && !RScDp13) {
					RScDp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd13")) {
				if (RScLd13 && !RScLp13) {
					RScLp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd13")) {
				if (RScUd13 && !RScUp13) {
					RScUp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d13")) {
				if (b_5d13 && !b_5p13) {
					b_5p13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d13")) {
				if (b_11d13 && !b_11p13) {
					b_11p13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d13")) {
				if (b_12d13 && !b_12p13) {
					b_12p13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d13")) {
				if (b_13d13 && !b_13p13) {
					b_13p13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d13")) {
				if (b_14d13 && !b_14p13) {
					b_14p13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd13")) {
				if (bRd13 && !bRp13) {
					bRp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd13")) {
				if (bLd13 && !bLp13) {
					bLp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd13")) {
				if (bUd13 && !bUp13) {
					bUp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd13")) {
				if (bDd13 && !bDp13) {
					bDp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld13")) {
				if (bSeld13 && !bSelp13) {
					bSelp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd13")) {
				if (bStd13 && !bStp13) {
					bStp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd13")) {
				if (bLTd13 && !bLTp13) {
					bLTp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd13")) {
				if (bRTd13 && !bRTp13) {
					bRTp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd13")) {
				if (bLPd13 && !bLPp13) {
					bLPp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd13")) {
				if (bRPd13 && !bRPp13) {
					bRPp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd13")) {
				if (bLJBd13 && !bLJBp13) {
					bLJBp13 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd13")) {
				if (bRJBd13 && !bRJBp13) {
					bRJBp13 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd13"))
				return LScRd13 ? true : false;
			if (Objects.equals(button, "LScLd13"))
				return LScLd13 ? true : false;
			if (Objects.equals(button, "LScUd13"))
				return LScUd13 ? true : false;
			if (Objects.equals(button, "LScDd13"))
				return LScDd13 ? true : false;
			if (Objects.equals(button, "RScRd13"))
				return RScRd13 ? true : false;
			if (Objects.equals(button, "RScLd13"))
				return RScLd13 ? true : false;
			if (Objects.equals(button, "RScUd13"))
				return RScUd13 ? true : false;
			if (Objects.equals(button, "RScDd13"))
				return RScDd13 ? true : false;
			if (Objects.equals(button, "bRd13"))// if the button is held down
				return bRd13 ? true : false;
			if (Objects.equals(button, "bLd13"))// if the button is held down
				return bLd13 ? true : false;
			if (Objects.equals(button, "bUd13"))// if the button is held down
				return bUd13 ? true : false;
			if (Objects.equals(button, "bDd13"))// if the button is held down
				return bDd13 ? true : false;
			if (Objects.equals(button, "b_5d13"))
				return b_5d13 ? true : false;
			if (Objects.equals(button, "b_11d13"))
				return b_11d13 ? true : false;
			if (Objects.equals(button, "b_12d13"))
				return b_12d13 ? true : false;
			if (Objects.equals(button, "b_13d13"))
				return b_13d13 ? true : false;
			if (Objects.equals(button, "b_14d13"))
				return b_14d13 ? true : false;
			if (Objects.equals(button, "bSeld13"))// if the button is held down
				return bSeld13 ? true : false;
			if (Objects.equals(button, "bStd13"))// if the button is held down
				return bStd13 ? true : false;
			if (Objects.equals(button, "bLTd13"))// if the button is held down
				return bLTd13 ? true : false;
			if (Objects.equals(button, "bRTd13"))// if the button is held down
				return bRTd13 ? true : false;
			if (Objects.equals(button, "bLPd13"))// if the button is held down
				return bLPd13 ? true : false;
			if (Objects.equals(button, "bRPd13"))// if the button is held down
				return bRPd13 ? true : false;
			if (Objects.equals(button, "bLJBd13"))// if the button is held down
				return bLJBd13 ? true : false;
			if (Objects.equals(button, "bRJBd13"))// if the button is held down
				return bRJBd13 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerFourteenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd14")) {
				if (LScRd14 && !LScRp14) {
					LScRp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd14")) {
				if (LScDd14 && !LScDp14) {
					LScDp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd14")) {
				if (LScLd14 && !LScLp14) {
					LScLp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd14")) {
				if (LScUd14 && !LScUp14) {
					LScUp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd14")) {
				if (RScRd14 && !RScRp14) {
					RScRp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd14")) {
				if (RScDd14 && !RScDp14) {
					RScDp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd14")) {
				if (RScLd14 && !RScLp14) {
					RScLp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd14")) {
				if (RScUd14 && !RScUp14) {
					RScUp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d14")) {
				if (b_5d14 && !b_5p14) {
					b_5p14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d14")) {
				if (b_11d14 && !b_11p14) {
					b_11p14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d14")) {
				if (b_12d14 && !b_12p14) {
					b_12p14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d14")) {
				if (b_13d14 && !b_13p14) {
					b_13p14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d14")) {
				if (b_14d14 && !b_14p14) {
					b_14p14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd14")) {
				if (bRd14 && !bRp14) {
					bRp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd14")) {
				if (bLd14 && !bLp14) {
					bLp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd14")) {
				if (bUd14 && !bUp14) {
					bUp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd14")) {
				if (bDd14 && !bDp14) {
					bDp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld14")) {
				if (bSeld14 && !bSelp14) {
					bSelp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd14")) {
				if (bStd14 && !bStp14) {
					bStp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd14")) {
				if (bLTd14 && !bLTp14) {
					bLTp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd14")) {
				if (bRTd14 && !bRTp14) {
					bRTp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd14")) {
				if (bLPd14 && !bLPp14) {
					bLPp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd14")) {
				if (bRPd14 && !bRPp14) {
					bRPp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd14")) {
				if (bLJBd14 && !bLJBp14) {
					bLJBp14 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd14")) {
				if (bRJBd14 && !bRJBp14) {
					bRJBp14 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd14"))
				return LScRd14 ? true : false;
			if (Objects.equals(button, "LScLd14"))
				return LScLd14 ? true : false;
			if (Objects.equals(button, "LScUd14"))
				return LScUd14 ? true : false;
			if (Objects.equals(button, "LScDd14"))
				return LScDd14 ? true : false;
			if (Objects.equals(button, "RScRd14"))
				return RScRd14 ? true : false;
			if (Objects.equals(button, "RScLd14"))
				return RScLd14 ? true : false;
			if (Objects.equals(button, "RScUd14"))
				return RScUd14 ? true : false;
			if (Objects.equals(button, "RScDd14"))
				return RScDd14 ? true : false;
			if (Objects.equals(button, "bRd14"))// if the button is held down
				return bRd14 ? true : false;
			if (Objects.equals(button, "bLd14"))// if the button is held down
				return bLd14 ? true : false;
			if (Objects.equals(button, "bUd14"))// if the button is held down
				return bUd14 ? true : false;
			if (Objects.equals(button, "bDd14"))// if the button is held down
				return bDd14 ? true : false;
			if (Objects.equals(button, "b_5d14"))
				return b_5d14 ? true : false;
			if (Objects.equals(button, "b_11d14"))
				return b_11d14 ? true : false;
			if (Objects.equals(button, "b_12d14"))
				return b_12d14 ? true : false;
			if (Objects.equals(button, "b_13d14"))
				return b_13d14 ? true : false;
			if (Objects.equals(button, "b_14d14"))
				return b_14d14 ? true : false;
			if (Objects.equals(button, "bSeld14"))// if the button is held down
				return bSeld14 ? true : false;
			if (Objects.equals(button, "bStd14"))// if the button is held down
				return bStd14 ? true : false;
			if (Objects.equals(button, "bLTd14"))// if the button is held down
				return bLTd14 ? true : false;
			if (Objects.equals(button, "bRTd14"))// if the button is held down
				return bRTd14 ? true : false;
			if (Objects.equals(button, "bLPd14"))// if the button is held down
				return bLPd14 ? true : false;
			if (Objects.equals(button, "bRPd14"))// if the button is held down
				return bRPd14 ? true : false;
			if (Objects.equals(button, "bLJBd14"))// if the button is held down
				return bLJBd14 ? true : false;
			if (Objects.equals(button, "bRJBd14"))// if the button is held down
				return bRJBd14 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerFifteenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd15")) {
				if (LScRd15 && !LScRp15) {
					LScRp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd15")) {
				if (LScDd15 && !LScDp15) {
					LScDp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd15")) {
				if (LScLd15 && !LScLp15) {
					LScLp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd15")) {
				if (LScUd15 && !LScUp15) {
					LScUp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd15")) {
				if (RScRd15 && !RScRp15) {
					RScRp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd15")) {
				if (RScDd15 && !RScDp15) {
					RScDp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd15")) {
				if (RScLd15 && !RScLp15) {
					RScLp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd15")) {
				if (RScUd15 && !RScUp15) {
					RScUp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d15")) {
				if (b_5d15 && !b_5p15) {
					b_5p15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d15")) {
				if (b_11d15 && !b_11p15) {
					b_11p15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d15")) {
				if (b_12d15 && !b_12p15) {
					b_12p15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d15")) {
				if (b_13d15 && !b_13p15) {
					b_13p15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d15")) {
				if (b_14d15 && !b_14p15) {
					b_14p15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd15")) {
				if (bRd15 && !bRp15) {
					bRp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd15")) {
				if (bLd15 && !bLp15) {
					bLp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd15")) {
				if (bUd15 && !bUp15) {
					bUp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd15")) {
				if (bDd15 && !bDp15) {
					bDp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld15")) {
				if (bSeld15 && !bSelp15) {
					bSelp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd15")) {
				if (bStd15 && !bStp15) {
					bStp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd15")) {
				if (bLTd15 && !bLTp15) {
					bLTp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd15")) {
				if (bRTd15 && !bRTp15) {
					bRTp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd15")) {
				if (bLPd15 && !bLPp15) {
					bLPp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd15")) {
				if (bRPd15 && !bRPp15) {
					bRPp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd15")) {
				if (bLJBd15 && !bLJBp15) {
					bLJBp15 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd15")) {
				if (bRJBd15 && !bRJBp15) {
					bRJBp15 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd15"))
				return LScRd15 ? true : false;
			if (Objects.equals(button, "LScLd15"))
				return LScLd15 ? true : false;
			if (Objects.equals(button, "LScUd15"))
				return LScUd15 ? true : false;
			if (Objects.equals(button, "LScDd15"))
				return LScDd15 ? true : false;
			if (Objects.equals(button, "RScRd15"))
				return RScRd15 ? true : false;
			if (Objects.equals(button, "RScLd15"))
				return RScLd15 ? true : false;
			if (Objects.equals(button, "RScUd15"))
				return RScUd15 ? true : false;
			if (Objects.equals(button, "RScDd15"))
				return RScDd15 ? true : false;
			if (Objects.equals(button, "bRd15"))// if the button is held down
				return bRd15 ? true : false;
			if (Objects.equals(button, "bLd15"))// if the button is held down
				return bLd15 ? true : false;
			if (Objects.equals(button, "bUd15"))// if the button is held down
				return bUd15 ? true : false;
			if (Objects.equals(button, "bDd15"))// if the button is held down
				return bDd15 ? true : false;
			if (Objects.equals(button, "b_5d15"))
				return b_5d15 ? true : false;
			if (Objects.equals(button, "b_11d15"))
				return b_11d15 ? true : false;
			if (Objects.equals(button, "b_12d15"))
				return b_12d15 ? true : false;
			if (Objects.equals(button, "b_13d15"))
				return b_13d15 ? true : false;
			if (Objects.equals(button, "b_14d15"))
				return b_14d15 ? true : false;
			if (Objects.equals(button, "bSeld15"))// if the button is held down
				return bSeld15 ? true : false;
			if (Objects.equals(button, "bStd15"))// if the button is held down
				return bStd15 ? true : false;
			if (Objects.equals(button, "bLTd15"))// if the button is held down
				return bLTd15 ? true : false;
			if (Objects.equals(button, "bRTd15"))// if the button is held down
				return bRTd15 ? true : false;
			if (Objects.equals(button, "bLPd15"))// if the button is held down
				return bLPd15 ? true : false;
			if (Objects.equals(button, "bRPd15"))// if the button is held down
				return bRPd15 ? true : false;
			if (Objects.equals(button, "bLJBd15"))// if the button is held down
				return bLJBd15 ? true : false;
			if (Objects.equals(button, "bRJBd15"))// if the button is held down
				return bRJBd15 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerSixteenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd16")) {
				if (LScRd16 && !LScRp16) {
					LScRp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd16")) {
				if (LScDd16 && !LScDp16) {
					LScDp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd16")) {
				if (LScLd16 && !LScLp16) {
					LScLp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd16")) {
				if (LScUd16 && !LScUp16) {
					LScUp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd16")) {
				if (RScRd16 && !RScRp16) {
					RScRp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd16")) {
				if (RScDd16 && !RScDp16) {
					RScDp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd16")) {
				if (RScLd16 && !RScLp16) {
					RScLp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd16")) {
				if (RScUd16 && !RScUp16) {
					RScUp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d16")) {
				if (b_5d16 && !b_5p16) {
					b_5p16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d16")) {
				if (b_11d16 && !b_11p16) {
					b_11p16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d16")) {
				if (b_12d16 && !b_12p16) {
					b_12p16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d16")) {
				if (b_13d16 && !b_13p16) {
					b_13p16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d16")) {
				if (b_14d16 && !b_14p16) {
					b_14p16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd16")) {
				if (bRd16 && !bRp16) {
					bRp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd16")) {
				if (bLd16 && !bLp16) {
					bLp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd16")) {
				if (bUd16 && !bUp16) {
					bUp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd16")) {
				if (bDd16 && !bDp16) {
					bDp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld16")) {
				if (bSeld16 && !bSelp16) {
					bSelp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd16")) {
				if (bStd16 && !bStp16) {
					bStp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd16")) {
				if (bLTd16 && !bLTp16) {
					bLTp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd16")) {
				if (bRTd16 && !bRTp16) {
					bRTp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd16")) {
				if (bLPd16 && !bLPp16) {
					bLPp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd16")) {
				if (bRPd16 && !bRPp16) {
					bRPp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd16")) {
				if (bLJBd16 && !bLJBp16) {
					bLJBp16 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd16")) {
				if (bRJBd16 && !bRJBp16) {
					bRJBp16 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd16"))
				return LScRd16 ? true : false;
			if (Objects.equals(button, "LScLd16"))
				return LScLd16 ? true : false;
			if (Objects.equals(button, "LScUd16"))
				return LScUd16 ? true : false;
			if (Objects.equals(button, "LScDd16"))
				return LScDd16 ? true : false;
			if (Objects.equals(button, "RScRd16"))
				return RScRd16 ? true : false;
			if (Objects.equals(button, "RScLd16"))
				return RScLd16 ? true : false;
			if (Objects.equals(button, "RScUd16"))
				return RScUd16 ? true : false;
			if (Objects.equals(button, "RScDd16"))
				return RScDd16 ? true : false;
			if (Objects.equals(button, "bRd16"))// if the button is held down
				return bRd16 ? true : false;
			if (Objects.equals(button, "bLd16"))// if the button is held down
				return bLd16 ? true : false;
			if (Objects.equals(button, "bUd16"))// if the button is held down
				return bUd16 ? true : false;
			if (Objects.equals(button, "bDd16"))// if the button is held down
				return bDd16 ? true : false;
			if (Objects.equals(button, "b_5d16"))
				return b_5d16 ? true : false;
			if (Objects.equals(button, "b_11d16"))
				return b_11d16 ? true : false;
			if (Objects.equals(button, "b_12d16"))
				return b_12d16 ? true : false;
			if (Objects.equals(button, "b_13d16"))
				return b_13d16 ? true : false;
			if (Objects.equals(button, "b_14d16"))
				return b_14d16 ? true : false;
			if (Objects.equals(button, "bSeld16"))// if the button is held down
				return bSeld16 ? true : false;
			if (Objects.equals(button, "bStd16"))// if the button is held down
				return bStd16 ? true : false;
			if (Objects.equals(button, "bLTd16"))// if the button is held down
				return bLTd16 ? true : false;
			if (Objects.equals(button, "bRTd16"))// if the button is held down
				return bRTd16 ? true : false;
			if (Objects.equals(button, "bLPd16"))// if the button is held down
				return bLPd16 ? true : false;
			if (Objects.equals(button, "bRPd16"))// if the button is held down
				return bRPd16 ? true : false;
			if (Objects.equals(button, "bLJBd16"))// if the button is held down
				return bLJBd16 ? true : false;
			if (Objects.equals(button, "bRJBd16"))// if the button is held down
				return bRJBd16 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerSeventeenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd17")) {
				if (LScRd17 && !LScRp17) {
					LScRp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd17")) {
				if (LScDd17 && !LScDp17) {
					LScDp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd17")) {
				if (LScLd17 && !LScLp17) {
					LScLp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd17")) {
				if (LScUd17 && !LScUp17) {
					LScUp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd17")) {
				if (RScRd17 && !RScRp17) {
					RScRp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd17")) {
				if (RScDd17 && !RScDp17) {
					RScDp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd17")) {
				if (RScLd17 && !RScLp17) {
					RScLp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd17")) {
				if (RScUd17 && !RScUp17) {
					RScUp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d17")) {
				if (b_5d17 && !b_5p17) {
					b_5p17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d17")) {
				if (b_11d17 && !b_11p17) {
					b_11p17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d17")) {
				if (b_12d17 && !b_12p17) {
					b_12p17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d17")) {
				if (b_13d17 && !b_13p17) {
					b_13p17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d17")) {
				if (b_14d17 && !b_14p17) {
					b_14p17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd17")) {
				if (bRd17 && !bRp17) {
					bRp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd17")) {
				if (bLd17 && !bLp17) {
					bLp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd17")) {
				if (bUd17 && !bUp17) {
					bUp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd17")) {
				if (bDd17 && !bDp17) {
					bDp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld17")) {
				if (bSeld17 && !bSelp17) {
					bSelp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd17")) {
				if (bStd17 && !bStp17) {
					bStp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd17")) {
				if (bLTd17 && !bLTp17) {
					bLTp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd17")) {
				if (bRTd17 && !bRTp17) {
					bRTp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd17")) {
				if (bLPd17 && !bLPp17) {
					bLPp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd17")) {
				if (bRPd17 && !bRPp17) {
					bRPp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd17")) {
				if (bLJBd17 && !bLJBp17) {
					bLJBp17 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd17")) {
				if (bRJBd17 && !bRJBp17) {
					bRJBp17 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd17"))
				return LScRd17 ? true : false;
			if (Objects.equals(button, "LScLd17"))
				return LScLd17 ? true : false;
			if (Objects.equals(button, "LScUd17"))
				return LScUd17 ? true : false;
			if (Objects.equals(button, "LScDd17"))
				return LScDd17 ? true : false;
			if (Objects.equals(button, "RScRd17"))
				return RScRd17 ? true : false;
			if (Objects.equals(button, "RScLd17"))
				return RScLd17 ? true : false;
			if (Objects.equals(button, "RScUd17"))
				return RScUd17 ? true : false;
			if (Objects.equals(button, "RScDd17"))
				return RScDd17 ? true : false;
			if (Objects.equals(button, "bRd17"))// if the button is held down
				return bRd17 ? true : false;
			if (Objects.equals(button, "bLd17"))// if the button is held down
				return bLd17 ? true : false;
			if (Objects.equals(button, "bUd17"))// if the button is held down
				return bUd17 ? true : false;
			if (Objects.equals(button, "bDd17"))// if the button is held down
				return bDd17 ? true : false;
			if (Objects.equals(button, "b_5d17"))
				return b_5d17 ? true : false;
			if (Objects.equals(button, "b_11d17"))
				return b_11d17 ? true : false;
			if (Objects.equals(button, "b_12d17"))
				return b_12d17 ? true : false;
			if (Objects.equals(button, "b_13d17"))
				return b_13d17 ? true : false;
			if (Objects.equals(button, "b_14d17"))
				return b_14d17 ? true : false;
			if (Objects.equals(button, "bSeld17"))// if the button is held down
				return bSeld17 ? true : false;
			if (Objects.equals(button, "bStd17"))// if the button is held down
				return bStd17 ? true : false;
			if (Objects.equals(button, "bLTd17"))// if the button is held down
				return bLTd17 ? true : false;
			if (Objects.equals(button, "bRTd17"))// if the button is held down
				return bRTd17 ? true : false;
			if (Objects.equals(button, "bLPd17"))// if the button is held down
				return bLPd17 ? true : false;
			if (Objects.equals(button, "bRPd17"))// if the button is held down
				return bRPd17 ? true : false;
			if (Objects.equals(button, "bLJBd17"))// if the button is held down
				return bLJBd17 ? true : false;
			if (Objects.equals(button, "bRJBd17"))// if the button is held down
				return bRJBd17 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerEighteenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd18")) {
				if (LScRd18 && !LScRp18) {
					LScRp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd18")) {
				if (LScDd18 && !LScDp18) {
					LScDp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd18")) {
				if (LScLd18 && !LScLp18) {
					LScLp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd18")) {
				if (LScUd18 && !LScUp18) {
					LScUp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd18")) {
				if (RScRd18 && !RScRp18) {
					RScRp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd18")) {
				if (RScDd18 && !RScDp18) {
					RScDp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd18")) {
				if (RScLd18 && !RScLp18) {
					RScLp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd18")) {
				if (RScUd18 && !RScUp18) {
					RScUp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d18")) {
				if (b_5d18 && !b_5p18) {
					b_5p18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d18")) {
				if (b_11d18 && !b_11p18) {
					b_11p18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d18")) {
				if (b_12d18 && !b_12p18) {
					b_12p18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d18")) {
				if (b_13d18 && !b_13p18) {
					b_13p18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d18")) {
				if (b_14d18 && !b_14p18) {
					b_14p18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd18")) {
				if (bRd18 && !bRp18) {
					bRp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd18")) {
				if (bLd18 && !bLp18) {
					bLp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd18")) {
				if (bUd18 && !bUp18) {
					bUp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd18")) {
				if (bDd18 && !bDp18) {
					bDp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld18")) {
				if (bSeld18 && !bSelp18) {
					bSelp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd18")) {
				if (bStd18 && !bStp18) {
					bStp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd18")) {
				if (bLTd18 && !bLTp18) {
					bLTp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd18")) {
				if (bRTd18 && !bRTp18) {
					bRTp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd18")) {
				if (bLPd18 && !bLPp18) {
					bLPp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd18")) {
				if (bRPd18 && !bRPp18) {
					bRPp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd18")) {
				if (bLJBd18 && !bLJBp18) {
					bLJBp18 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd18")) {
				if (bRJBd18 && !bRJBp18) {
					bRJBp18 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd18"))
				return LScRd18 ? true : false;
			if (Objects.equals(button, "LScLd18"))
				return LScLd18 ? true : false;
			if (Objects.equals(button, "LScUd18"))
				return LScUd18 ? true : false;
			if (Objects.equals(button, "LScDd18"))
				return LScDd18 ? true : false;
			if (Objects.equals(button, "RScRd18"))
				return RScRd18 ? true : false;
			if (Objects.equals(button, "RScLd18"))
				return RScLd18 ? true : false;
			if (Objects.equals(button, "RScUd18"))
				return RScUd18 ? true : false;
			if (Objects.equals(button, "RScDd18"))
				return RScDd18 ? true : false;
			if (Objects.equals(button, "bRd18"))// if the button is held down
				return bRd18 ? true : false;
			if (Objects.equals(button, "bLd18"))// if the button is held down
				return bLd18 ? true : false;
			if (Objects.equals(button, "bUd18"))// if the button is held down
				return bUd18 ? true : false;
			if (Objects.equals(button, "bDd18"))// if the button is held down
				return bDd18 ? true : false;
			if (Objects.equals(button, "b_5d18"))
				return b_5d18 ? true : false;
			if (Objects.equals(button, "b_11d18"))
				return b_11d18 ? true : false;
			if (Objects.equals(button, "b_12d18"))
				return b_12d18 ? true : false;
			if (Objects.equals(button, "b_13d18"))
				return b_13d18 ? true : false;
			if (Objects.equals(button, "b_14d18"))
				return b_14d18 ? true : false;
			if (Objects.equals(button, "bSeld18"))// if the button is held down
				return bSeld18 ? true : false;
			if (Objects.equals(button, "bStd18"))// if the button is held down
				return bStd18 ? true : false;
			if (Objects.equals(button, "bLTd18"))// if the button is held down
				return bLTd18 ? true : false;
			if (Objects.equals(button, "bRTd18"))// if the button is held down
				return bRTd18 ? true : false;
			if (Objects.equals(button, "bLPd18"))// if the button is held down
				return bLPd18 ? true : false;
			if (Objects.equals(button, "bRPd18"))// if the button is held down
				return bRPd18 ? true : false;
			if (Objects.equals(button, "bLJBd18"))// if the button is held down
				return bLJBd18 ? true : false;
			if (Objects.equals(button, "bRJBd18"))// if the button is held down
				return bRJBd18 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerNineteenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd19")) {
				if (LScRd19 && !LScRp19) {
					LScRp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd19")) {
				if (LScDd19 && !LScDp19) {
					LScDp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd19")) {
				if (LScLd19 && !LScLp19) {
					LScLp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd19")) {
				if (LScUd19 && !LScUp19) {
					LScUp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd19")) {
				if (RScRd19 && !RScRp19) {
					RScRp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd19")) {
				if (RScDd19 && !RScDp19) {
					RScDp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd19")) {
				if (RScLd19 && !RScLp19) {
					RScLp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd19")) {
				if (RScUd19 && !RScUp19) {
					RScUp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d19")) {
				if (b_5d19 && !b_5p19) {
					b_5p19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d19")) {
				if (b_11d19 && !b_11p19) {
					b_11p19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d19")) {
				if (b_12d19 && !b_12p19) {
					b_12p19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d19")) {
				if (b_13d19 && !b_13p19) {
					b_13p19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d19")) {
				if (b_14d19 && !b_14p19) {
					b_14p19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd19")) {
				if (bRd19 && !bRp19) {
					bRp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd19")) {
				if (bLd19 && !bLp19) {
					bLp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd19")) {
				if (bUd19 && !bUp19) {
					bUp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd19")) {
				if (bDd19 && !bDp19) {
					bDp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld19")) {
				if (bSeld19 && !bSelp19) {
					bSelp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd19")) {
				if (bStd19 && !bStp19) {
					bStp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd19")) {
				if (bLTd19 && !bLTp19) {
					bLTp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd19")) {
				if (bRTd19 && !bRTp19) {
					bRTp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd19")) {
				if (bLPd19 && !bLPp19) {
					bLPp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd19")) {
				if (bRPd19 && !bRPp19) {
					bRPp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd19")) {
				if (bLJBd19 && !bLJBp19) {
					bLJBp19 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd19")) {
				if (bRJBd19 && !bRJBp19) {
					bRJBp19 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd19"))
				return LScRd19 ? true : false;
			if (Objects.equals(button, "LScLd19"))
				return LScLd19 ? true : false;
			if (Objects.equals(button, "LScUd19"))
				return LScUd19 ? true : false;
			if (Objects.equals(button, "LScDd19"))
				return LScDd19 ? true : false;
			if (Objects.equals(button, "RScRd19"))
				return RScRd19 ? true : false;
			if (Objects.equals(button, "RScLd19"))
				return RScLd19 ? true : false;
			if (Objects.equals(button, "RScUd19"))
				return RScUd19 ? true : false;
			if (Objects.equals(button, "RScDd19"))
				return RScDd19 ? true : false;
			if (Objects.equals(button, "bRd19"))// if the button is held down
				return bRd19 ? true : false;
			if (Objects.equals(button, "bLd19"))// if the button is held down
				return bLd19 ? true : false;
			if (Objects.equals(button, "bUd19"))// if the button is held down
				return bUd19 ? true : false;
			if (Objects.equals(button, "bDd19"))// if the button is held down
				return bDd19 ? true : false;
			if (Objects.equals(button, "b_5d19"))
				return b_5d19 ? true : false;
			if (Objects.equals(button, "b_11d19"))
				return b_11d19 ? true : false;
			if (Objects.equals(button, "b_12d19"))
				return b_12d19 ? true : false;
			if (Objects.equals(button, "b_13d19"))
				return b_13d19 ? true : false;
			if (Objects.equals(button, "b_14d19"))
				return b_14d19 ? true : false;
			if (Objects.equals(button, "bSeld19"))// if the button is held down
				return bSeld19 ? true : false;
			if (Objects.equals(button, "bStd19"))// if the button is held down
				return bStd19 ? true : false;
			if (Objects.equals(button, "bLTd19"))// if the button is held down
				return bLTd19 ? true : false;
			if (Objects.equals(button, "bRTd19"))// if the button is held down
				return bRTd19 ? true : false;
			if (Objects.equals(button, "bLPd19"))// if the button is held down
				return bLPd19 ? true : false;
			if (Objects.equals(button, "bRPd19"))// if the button is held down
				return bRPd19 ? true : false;
			if (Objects.equals(button, "bLJBd19"))// if the button is held down
				return bLJBd19 ? true : false;
			if (Objects.equals(button, "bRJBd19"))// if the button is held down
				return bRJBd19 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwentyButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd20")) {
				if (LScRd20 && !LScRp20) {
					LScRp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd20")) {
				if (LScDd20 && !LScDp20) {
					LScDp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd20")) {
				if (LScLd20 && !LScLp20) {
					LScLp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd20")) {
				if (LScUd20 && !LScUp20) {
					LScUp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd20")) {
				if (RScRd20 && !RScRp20) {
					RScRp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd20")) {
				if (RScDd20 && !RScDp20) {
					RScDp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd20")) {
				if (RScLd20 && !RScLp20) {
					RScLp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd20")) {
				if (RScUd20 && !RScUp20) {
					RScUp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d20")) {
				if (b_5d20 && !b_5p20) {
					b_5p20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d20")) {
				if (b_11d20 && !b_11p20) {
					b_11p20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d20")) {
				if (b_12d20 && !b_12p20) {
					b_12p20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d20")) {
				if (b_13d20 && !b_13p20) {
					b_13p20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d20")) {
				if (b_14d20 && !b_14p20) {
					b_14p20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd20")) {
				if (bRd20 && !bRp20) {
					bRp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd20")) {
				if (bLd20 && !bLp20) {
					bLp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd20")) {
				if (bUd20 && !bUp20) {
					bUp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd20")) {
				if (bDd20 && !bDp20) {
					bDp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld20")) {
				if (bSeld20 && !bSelp20) {
					bSelp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd20")) {
				if (bStd20 && !bStp20) {
					bStp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd20")) {
				if (bLTd20 && !bLTp20) {
					bLTp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd20")) {
				if (bRTd20 && !bRTp20) {
					bRTp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd20")) {
				if (bLPd20 && !bLPp20) {
					bLPp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd20")) {
				if (bRPd20 && !bRPp20) {
					bRPp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd20")) {
				if (bLJBd20 && !bLJBp20) {
					bLJBp20 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd20")) {
				if (bRJBd20 && !bRJBp20) {
					bRJBp20 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd20"))
				return LScRd20 ? true : false;
			if (Objects.equals(button, "LScLd20"))
				return LScLd20 ? true : false;
			if (Objects.equals(button, "LScUd20"))
				return LScUd20 ? true : false;
			if (Objects.equals(button, "LScDd20"))
				return LScDd20 ? true : false;
			if (Objects.equals(button, "RScRd20"))
				return RScRd20 ? true : false;
			if (Objects.equals(button, "RScLd20"))
				return RScLd20 ? true : false;
			if (Objects.equals(button, "RScUd20"))
				return RScUd20 ? true : false;
			if (Objects.equals(button, "RScDd20"))
				return RScDd20 ? true : false;
			if (Objects.equals(button, "bRd20"))// if the button is held down
				return bRd20 ? true : false;
			if (Objects.equals(button, "bLd20"))// if the button is held down
				return bLd20 ? true : false;
			if (Objects.equals(button, "bUd20"))// if the button is held down
				return bUd20 ? true : false;
			if (Objects.equals(button, "bDd20"))// if the button is held down
				return bDd20 ? true : false;
			if (Objects.equals(button, "b_5d20"))
				return b_5d20 ? true : false;
			if (Objects.equals(button, "b_11d20"))
				return b_11d20 ? true : false;
			if (Objects.equals(button, "b_12d20"))
				return b_12d20 ? true : false;
			if (Objects.equals(button, "b_13d20"))
				return b_13d20 ? true : false;
			if (Objects.equals(button, "b_14d20"))
				return b_14d20 ? true : false;
			if (Objects.equals(button, "bSeld20"))// if the button is held down
				return bSeld20 ? true : false;
			if (Objects.equals(button, "bStd20"))// if the button is held down
				return bStd20 ? true : false;
			if (Objects.equals(button, "bLTd20"))// if the button is held down
				return bLTd20 ? true : false;
			if (Objects.equals(button, "bRTd20"))// if the button is held down
				return bRTd20 ? true : false;
			if (Objects.equals(button, "bLPd20"))// if the button is held down
				return bLPd20 ? true : false;
			if (Objects.equals(button, "bRPd20"))// if the button is held down
				return bRPd20 ? true : false;
			if (Objects.equals(button, "bLJBd20"))// if the button is held down
				return bLJBd20 ? true : false;
			if (Objects.equals(button, "bRJBd20"))// if the button is held down
				return bRJBd20 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwentyOneButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd21")) {
				if (LScRd21 && !LScRp21) {
					LScRp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd21")) {
				if (LScDd21 && !LScDp21) {
					LScDp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd21")) {
				if (LScLd21 && !LScLp21) {
					LScLp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd21")) {
				if (LScUd21 && !LScUp21) {
					LScUp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd21")) {
				if (RScRd21 && !RScRp21) {
					RScRp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd21")) {
				if (RScDd21 && !RScDp21) {
					RScDp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd21")) {
				if (RScLd21 && !RScLp21) {
					RScLp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd21")) {
				if (RScUd21 && !RScUp21) {
					RScUp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d21")) {
				if (b_5d21 && !b_5p21) {
					b_5p21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d21")) {
				if (b_11d21 && !b_11p21) {
					b_11p21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d21")) {
				if (b_12d21 && !b_12p21) {
					b_12p21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d21")) {
				if (b_13d21 && !b_13p21) {
					b_13p21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d21")) {
				if (b_14d21 && !b_14p21) {
					b_14p21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd21")) {
				if (bRd21 && !bRp21) {
					bRp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd21")) {
				if (bLd21 && !bLp21) {
					bLp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd21")) {
				if (bUd21 && !bUp21) {
					bUp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd21")) {
				if (bDd21 && !bDp21) {
					bDp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld21")) {
				if (bSeld21 && !bSelp21) {
					bSelp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd21")) {
				if (bStd21 && !bStp21) {
					bStp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd21")) {
				if (bLTd21 && !bLTp21) {
					bLTp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd21")) {
				if (bRTd21 && !bRTp21) {
					bRTp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd21")) {
				if (bLPd21 && !bLPp21) {
					bLPp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd21")) {
				if (bRPd21 && !bRPp21) {
					bRPp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd21")) {
				if (bLJBd21 && !bLJBp21) {
					bLJBp21 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd21")) {
				if (bRJBd21 && !bRJBp21) {
					bRJBp21 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd21"))
				return LScRd21 ? true : false;
			if (Objects.equals(button, "LScLd21"))
				return LScLd21 ? true : false;
			if (Objects.equals(button, "LScUd21"))
				return LScUd21 ? true : false;
			if (Objects.equals(button, "LScDd21"))
				return LScDd21 ? true : false;
			if (Objects.equals(button, "RScRd21"))
				return RScRd21 ? true : false;
			if (Objects.equals(button, "RScLd21"))
				return RScLd21 ? true : false;
			if (Objects.equals(button, "RScUd21"))
				return RScUd21 ? true : false;
			if (Objects.equals(button, "RScDd21"))
				return RScDd21 ? true : false;
			if (Objects.equals(button, "bRd21"))// if the button is held down
				return bRd21 ? true : false;
			if (Objects.equals(button, "bLd21"))// if the button is held down
				return bLd21 ? true : false;
			if (Objects.equals(button, "bUd21"))// if the button is held down
				return bUd21 ? true : false;
			if (Objects.equals(button, "bDd21"))// if the button is held down
				return bDd21 ? true : false;
			if (Objects.equals(button, "b_5d21"))
				return b_5d21 ? true : false;
			if (Objects.equals(button, "b_11d21"))
				return b_11d21 ? true : false;
			if (Objects.equals(button, "b_12d21"))
				return b_12d21 ? true : false;
			if (Objects.equals(button, "b_13d21"))
				return b_13d21 ? true : false;
			if (Objects.equals(button, "b_14d21"))
				return b_14d21 ? true : false;
			if (Objects.equals(button, "bSeld21"))// if the button is held down
				return bSeld21 ? true : false;
			if (Objects.equals(button, "bStd21"))// if the button is held down
				return bStd21 ? true : false;
			if (Objects.equals(button, "bLTd21"))// if the button is held down
				return bLTd21 ? true : false;
			if (Objects.equals(button, "bRTd21"))// if the button is held down
				return bRTd21 ? true : false;
			if (Objects.equals(button, "bLPd21"))// if the button is held down
				return bLPd21 ? true : false;
			if (Objects.equals(button, "bRPd21"))// if the button is held down
				return bRPd21 ? true : false;
			if (Objects.equals(button, "bLJBd21"))// if the button is held down
				return bLJBd21 ? true : false;
			if (Objects.equals(button, "bRJBd21"))// if the button is held down
				return bRJBd21 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwentyTwoButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd22")) {
				if (LScRd22 && !LScRp22) {
					LScRp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd22")) {
				if (LScDd22 && !LScDp22) {
					LScDp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd22")) {
				if (LScLd22 && !LScLp22) {
					LScLp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd22")) {
				if (LScUd22 && !LScUp22) {
					LScUp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd22")) {
				if (RScRd22 && !RScRp22) {
					RScRp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd22")) {
				if (RScDd22 && !RScDp22) {
					RScDp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd22")) {
				if (RScLd22 && !RScLp22) {
					RScLp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd22")) {
				if (RScUd22 && !RScUp22) {
					RScUp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d22")) {
				if (b_5d22 && !b_5p22) {
					b_5p22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d22")) {
				if (b_11d22 && !b_11p22) {
					b_11p22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d22")) {
				if (b_12d22 && !b_12p22) {
					b_12p22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d22")) {
				if (b_13d22 && !b_13p22) {
					b_13p22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d22")) {
				if (b_14d22 && !b_14p22) {
					b_14p22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd22")) {
				if (bRd22 && !bRp22) {
					bRp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd22")) {
				if (bLd22 && !bLp22) {
					bLp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd22")) {
				if (bUd22 && !bUp22) {
					bUp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd22")) {
				if (bDd22 && !bDp22) {
					bDp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld22")) {
				if (bSeld22 && !bSelp22) {
					bSelp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd22")) {
				if (bStd22 && !bStp22) {
					bStp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd22")) {
				if (bLTd22 && !bLTp22) {
					bLTp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd22")) {
				if (bRTd22 && !bRTp22) {
					bRTp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd22")) {
				if (bLPd22 && !bLPp22) {
					bLPp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd22")) {
				if (bRPd22 && !bRPp22) {
					bRPp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd22")) {
				if (bLJBd22 && !bLJBp22) {
					bLJBp22 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd22")) {
				if (bRJBd22 && !bRJBp22) {
					bRJBp22 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd22"))
				return LScRd22 ? true : false;
			if (Objects.equals(button, "LScLd22"))
				return LScLd22 ? true : false;
			if (Objects.equals(button, "LScUd22"))
				return LScUd22 ? true : false;
			if (Objects.equals(button, "LScDd22"))
				return LScDd22 ? true : false;
			if (Objects.equals(button, "RScRd22"))
				return RScRd22 ? true : false;
			if (Objects.equals(button, "RScLd22"))
				return RScLd22 ? true : false;
			if (Objects.equals(button, "RScUd22"))
				return RScUd22 ? true : false;
			if (Objects.equals(button, "RScDd22"))
				return RScDd22 ? true : false;
			if (Objects.equals(button, "bRd22"))// if the button is held down
				return bRd22 ? true : false;
			if (Objects.equals(button, "bLd22"))// if the button is held down
				return bLd22 ? true : false;
			if (Objects.equals(button, "bUd22"))// if the button is held down
				return bUd22 ? true : false;
			if (Objects.equals(button, "bDd22"))// if the button is held down
				return bDd22 ? true : false;
			if (Objects.equals(button, "b_5d22"))
				return b_5d22 ? true : false;
			if (Objects.equals(button, "b_11d22"))
				return b_11d22 ? true : false;
			if (Objects.equals(button, "b_12d22"))
				return b_12d22 ? true : false;
			if (Objects.equals(button, "b_13d22"))
				return b_13d22 ? true : false;
			if (Objects.equals(button, "b_14d22"))
				return b_14d22 ? true : false;
			if (Objects.equals(button, "bSeld22"))// if the button is held down
				return bSeld22 ? true : false;
			if (Objects.equals(button, "bStd22"))// if the button is held down
				return bStd22 ? true : false;
			if (Objects.equals(button, "bLTd22"))// if the button is held down
				return bLTd22 ? true : false;
			if (Objects.equals(button, "bRTd22"))// if the button is held down
				return bRTd22 ? true : false;
			if (Objects.equals(button, "bLPd22"))// if the button is held down
				return bLPd22 ? true : false;
			if (Objects.equals(button, "bRPd22"))// if the button is held down
				return bRPd22 ? true : false;
			if (Objects.equals(button, "bLJBd22"))// if the button is held down
				return bLJBd22 ? true : false;
			if (Objects.equals(button, "bRJBd22"))// if the button is held down
				return bRJBd22 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwentyThreeButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd23")) {
				if (LScRd23 && !LScRp23) {
					LScRp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd23")) {
				if (LScDd23 && !LScDp23) {
					LScDp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd23")) {
				if (LScLd23 && !LScLp23) {
					LScLp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd23")) {
				if (LScUd23 && !LScUp23) {
					LScUp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd23")) {
				if (RScRd23 && !RScRp23) {
					RScRp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd23")) {
				if (RScDd23 && !RScDp23) {
					RScDp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd23")) {
				if (RScLd23 && !RScLp23) {
					RScLp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd23")) {
				if (RScUd23 && !RScUp23) {
					RScUp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d23")) {
				if (b_5d23 && !b_5p23) {
					b_5p23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d23")) {
				if (b_11d23 && !b_11p23) {
					b_11p23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d23")) {
				if (b_12d23 && !b_12p23) {
					b_12p23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d23")) {
				if (b_13d23 && !b_13p23) {
					b_13p23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d23")) {
				if (b_14d23 && !b_14p23) {
					b_14p23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd23")) {
				if (bRd23 && !bRp23) {
					bRp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd23")) {
				if (bLd23 && !bLp23) {
					bLp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd23")) {
				if (bUd23 && !bUp23) {
					bUp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd23")) {
				if (bDd23 && !bDp23) {
					bDp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld23")) {
				if (bSeld23 && !bSelp23) {
					bSelp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd23")) {
				if (bStd23 && !bStp23) {
					bStp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd23")) {
				if (bLTd23 && !bLTp23) {
					bLTp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd23")) {
				if (bRTd23 && !bRTp23) {
					bRTp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd23")) {
				if (bLPd23 && !bLPp23) {
					bLPp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd23")) {
				if (bRPd23 && !bRPp23) {
					bRPp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd23")) {
				if (bLJBd23 && !bLJBp23) {
					bLJBp23 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd23")) {
				if (bRJBd23 && !bRJBp23) {
					bRJBp23 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd23"))
				return LScRd23 ? true : false;
			if (Objects.equals(button, "LScLd23"))
				return LScLd23 ? true : false;
			if (Objects.equals(button, "LScUd23"))
				return LScUd23 ? true : false;
			if (Objects.equals(button, "LScDd23"))
				return LScDd23 ? true : false;
			if (Objects.equals(button, "RScRd23"))
				return RScRd23 ? true : false;
			if (Objects.equals(button, "RScLd23"))
				return RScLd23 ? true : false;
			if (Objects.equals(button, "RScUd23"))
				return RScUd23 ? true : false;
			if (Objects.equals(button, "RScDd23"))
				return RScDd23 ? true : false;
			if (Objects.equals(button, "bRd23"))// if the button is held down
				return bRd23 ? true : false;
			if (Objects.equals(button, "bLd23"))// if the button is held down
				return bLd23 ? true : false;
			if (Objects.equals(button, "bUd23"))// if the button is held down
				return bUd23 ? true : false;
			if (Objects.equals(button, "bDd23"))// if the button is held down
				return bDd23 ? true : false;
			if (Objects.equals(button, "b_5d23"))
				return b_5d23 ? true : false;
			if (Objects.equals(button, "b_11d23"))
				return b_11d23 ? true : false;
			if (Objects.equals(button, "b_12d23"))
				return b_12d23 ? true : false;
			if (Objects.equals(button, "b_13d23"))
				return b_13d23 ? true : false;
			if (Objects.equals(button, "b_14d23"))
				return b_14d23 ? true : false;
			if (Objects.equals(button, "bSeld23"))// if the button is held down
				return bSeld23 ? true : false;
			if (Objects.equals(button, "bStd23"))// if the button is held down
				return bStd23 ? true : false;
			if (Objects.equals(button, "bLTd23"))// if the button is held down
				return bLTd23 ? true : false;
			if (Objects.equals(button, "bRTd23"))// if the button is held down
				return bRTd23 ? true : false;
			if (Objects.equals(button, "bLPd23"))// if the button is held down
				return bLPd23 ? true : false;
			if (Objects.equals(button, "bRPd23"))// if the button is held down
				return bRPd23 ? true : false;
			if (Objects.equals(button, "bLJBd23"))// if the button is held down
				return bLJBd23 ? true : false;
			if (Objects.equals(button, "bRJBd23"))// if the button is held down
				return bRJBd23 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwentyFourButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd24")) {
				if (LScRd24 && !LScRp24) {
					LScRp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd24")) {
				if (LScDd24 && !LScDp24) {
					LScDp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd24")) {
				if (LScLd24 && !LScLp24) {
					LScLp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd24")) {
				if (LScUd24 && !LScUp24) {
					LScUp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd24")) {
				if (RScRd24 && !RScRp24) {
					RScRp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd24")) {
				if (RScDd24 && !RScDp24) {
					RScDp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd24")) {
				if (RScLd24 && !RScLp24) {
					RScLp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd24")) {
				if (RScUd24 && !RScUp24) {
					RScUp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d24")) {
				if (b_5d24 && !b_5p24) {
					b_5p24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d24")) {
				if (b_11d24 && !b_11p24) {
					b_11p24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d24")) {
				if (b_12d24 && !b_12p24) {
					b_12p24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d24")) {
				if (b_13d24 && !b_13p24) {
					b_13p24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d24")) {
				if (b_14d24 && !b_14p24) {
					b_14p24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd24")) {
				if (bRd24 && !bRp24) {
					bRp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd24")) {
				if (bLd24 && !bLp24) {
					bLp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd24")) {
				if (bUd24 && !bUp24) {
					bUp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd24")) {
				if (bDd24 && !bDp24) {
					bDp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld24")) {
				if (bSeld24 && !bSelp24) {
					bSelp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd24")) {
				if (bStd24 && !bStp24) {
					bStp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd24")) {
				if (bLTd24 && !bLTp24) {
					bLTp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd24")) {
				if (bRTd24 && !bRTp24) {
					bRTp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd24")) {
				if (bLPd24 && !bLPp24) {
					bLPp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd24")) {
				if (bRPd24 && !bRPp24) {
					bRPp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd24")) {
				if (bLJBd24 && !bLJBp24) {
					bLJBp24 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd24")) {
				if (bRJBd24 && !bRJBp24) {
					bRJBp24 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd24"))
				return LScRd24 ? true : false;
			if (Objects.equals(button, "LScLd24"))
				return LScLd24 ? true : false;
			if (Objects.equals(button, "LScUd24"))
				return LScUd24 ? true : false;
			if (Objects.equals(button, "LScDd24"))
				return LScDd24 ? true : false;
			if (Objects.equals(button, "RScRd24"))
				return RScRd24 ? true : false;
			if (Objects.equals(button, "RScLd24"))
				return RScLd24 ? true : false;
			if (Objects.equals(button, "RScUd24"))
				return RScUd24 ? true : false;
			if (Objects.equals(button, "RScDd24"))
				return RScDd24 ? true : false;
			if (Objects.equals(button, "bRd24"))// if the button is held down
				return bRd24 ? true : false;
			if (Objects.equals(button, "bLd24"))// if the button is held down
				return bLd24 ? true : false;
			if (Objects.equals(button, "bUd24"))// if the button is held down
				return bUd24 ? true : false;
			if (Objects.equals(button, "bDd24"))// if the button is held down
				return bDd24 ? true : false;
			if (Objects.equals(button, "b_5d24"))
				return b_5d24 ? true : false;
			if (Objects.equals(button, "b_11d24"))
				return b_11d24 ? true : false;
			if (Objects.equals(button, "b_12d24"))
				return b_12d24 ? true : false;
			if (Objects.equals(button, "b_13d24"))
				return b_13d24 ? true : false;
			if (Objects.equals(button, "b_14d24"))
				return b_14d24 ? true : false;
			if (Objects.equals(button, "bSeld24"))// if the button is held down
				return bSeld24 ? true : false;
			if (Objects.equals(button, "bStd24"))// if the button is held down
				return bStd24 ? true : false;
			if (Objects.equals(button, "bLTd24"))// if the button is held down
				return bLTd24 ? true : false;
			if (Objects.equals(button, "bRTd24"))// if the button is held down
				return bRTd24 ? true : false;
			if (Objects.equals(button, "bLPd24"))// if the button is held down
				return bLPd24 ? true : false;
			if (Objects.equals(button, "bRPd24"))// if the button is held down
				return bRPd24 ? true : false;
			if (Objects.equals(button, "bLJBd24"))// if the button is held down
				return bLJBd24 ? true : false;
			if (Objects.equals(button, "bRJBd24"))// if the button is held down
				return bRJBd24 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwentyFiveButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd25")) {
				if (LScRd25 && !LScRp25) {
					LScRp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd25")) {
				if (LScDd25 && !LScDp25) {
					LScDp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd25")) {
				if (LScLd25 && !LScLp25) {
					LScLp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd25")) {
				if (LScUd25 && !LScUp25) {
					LScUp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd25")) {
				if (RScRd25 && !RScRp25) {
					RScRp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd25")) {
				if (RScDd25 && !RScDp25) {
					RScDp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd25")) {
				if (RScLd25 && !RScLp25) {
					RScLp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd25")) {
				if (RScUd25 && !RScUp25) {
					RScUp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d25")) {
				if (b_5d25 && !b_5p25) {
					b_5p25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d25")) {
				if (b_11d25 && !b_11p25) {
					b_11p25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d25")) {
				if (b_12d25 && !b_12p25) {
					b_12p25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d25")) {
				if (b_13d25 && !b_13p25) {
					b_13p25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d25")) {
				if (b_14d25 && !b_14p25) {
					b_14p25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd25")) {
				if (bRd25 && !bRp25) {
					bRp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd25")) {
				if (bLd25 && !bLp25) {
					bLp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd25")) {
				if (bUd25 && !bUp25) {
					bUp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd25")) {
				if (bDd25 && !bDp25) {
					bDp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld25")) {
				if (bSeld25 && !bSelp25) {
					bSelp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd25")) {
				if (bStd25 && !bStp25) {
					bStp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd25")) {
				if (bLTd25 && !bLTp25) {
					bLTp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd25")) {
				if (bRTd25 && !bRTp25) {
					bRTp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd25")) {
				if (bLPd25 && !bLPp25) {
					bLPp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd25")) {
				if (bRPd25 && !bRPp25) {
					bRPp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd25")) {
				if (bLJBd25 && !bLJBp25) {
					bLJBp25 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd25")) {
				if (bRJBd25 && !bRJBp25) {
					bRJBp25 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd25"))
				return LScRd25 ? true : false;
			if (Objects.equals(button, "LScLd25"))
				return LScLd25 ? true : false;
			if (Objects.equals(button, "LScUd25"))
				return LScUd25 ? true : false;
			if (Objects.equals(button, "LScDd25"))
				return LScDd25 ? true : false;
			if (Objects.equals(button, "RScRd25"))
				return RScRd25 ? true : false;
			if (Objects.equals(button, "RScLd25"))
				return RScLd25 ? true : false;
			if (Objects.equals(button, "RScUd25"))
				return RScUd25 ? true : false;
			if (Objects.equals(button, "RScDd25"))
				return RScDd25 ? true : false;
			if (Objects.equals(button, "bRd25"))// if the button is held down
				return bRd25 ? true : false;
			if (Objects.equals(button, "bLd25"))// if the button is held down
				return bLd25 ? true : false;
			if (Objects.equals(button, "bUd25"))// if the button is held down
				return bUd25 ? true : false;
			if (Objects.equals(button, "bDd25"))// if the button is held down
				return bDd25 ? true : false;
			if (Objects.equals(button, "b_5d25"))
				return b_5d25 ? true : false;
			if (Objects.equals(button, "b_11d25"))
				return b_11d25 ? true : false;
			if (Objects.equals(button, "b_12d25"))
				return b_12d25 ? true : false;
			if (Objects.equals(button, "b_13d25"))
				return b_13d25 ? true : false;
			if (Objects.equals(button, "b_14d25"))
				return b_14d25 ? true : false;
			if (Objects.equals(button, "bSeld25"))// if the button is held down
				return bSeld25 ? true : false;
			if (Objects.equals(button, "bStd25"))// if the button is held down
				return bStd25 ? true : false;
			if (Objects.equals(button, "bLTd25"))// if the button is held down
				return bLTd25 ? true : false;
			if (Objects.equals(button, "bRTd25"))// if the button is held down
				return bRTd25 ? true : false;
			if (Objects.equals(button, "bLPd25"))// if the button is held down
				return bLPd25 ? true : false;
			if (Objects.equals(button, "bRPd25"))// if the button is held down
				return bRPd25 ? true : false;
			if (Objects.equals(button, "bLJBd25"))// if the button is held down
				return bLJBd25 ? true : false;
			if (Objects.equals(button, "bRJBd25"))// if the button is held down
				return bRJBd25 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwentySixButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd26")) {
				if (LScRd26 && !LScRp26) {
					LScRp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd26")) {
				if (LScDd26 && !LScDp26) {
					LScDp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd26")) {
				if (LScLd26 && !LScLp26) {
					LScLp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd26")) {
				if (LScUd26 && !LScUp26) {
					LScUp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd26")) {
				if (RScRd26 && !RScRp26) {
					RScRp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd26")) {
				if (RScDd26 && !RScDp26) {
					RScDp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd26")) {
				if (RScLd26 && !RScLp26) {
					RScLp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd26")) {
				if (RScUd26 && !RScUp26) {
					RScUp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d26")) {
				if (b_5d26 && !b_5p26) {
					b_5p26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d26")) {
				if (b_11d26 && !b_11p26) {
					b_11p26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d26")) {
				if (b_12d26 && !b_12p26) {
					b_12p26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d26")) {
				if (b_13d26 && !b_13p26) {
					b_13p26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d26")) {
				if (b_14d26 && !b_14p26) {
					b_14p26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd26")) {
				if (bRd26 && !bRp26) {
					bRp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd26")) {
				if (bLd26 && !bLp26) {
					bLp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd26")) {
				if (bUd26 && !bUp26) {
					bUp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd26")) {
				if (bDd26 && !bDp26) {
					bDp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld26")) {
				if (bSeld26 && !bSelp26) {
					bSelp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd26")) {
				if (bStd26 && !bStp26) {
					bStp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd26")) {
				if (bLTd26 && !bLTp26) {
					bLTp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd26")) {
				if (bRTd26 && !bRTp26) {
					bRTp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd26")) {
				if (bLPd26 && !bLPp26) {
					bLPp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd26")) {
				if (bRPd26 && !bRPp26) {
					bRPp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd26")) {
				if (bLJBd26 && !bLJBp26) {
					bLJBp26 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd26")) {
				if (bRJBd26 && !bRJBp26) {
					bRJBp26 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd26"))
				return LScRd26 ? true : false;
			if (Objects.equals(button, "LScLd26"))
				return LScLd26 ? true : false;
			if (Objects.equals(button, "LScUd26"))
				return LScUd26 ? true : false;
			if (Objects.equals(button, "LScDd26"))
				return LScDd26 ? true : false;
			if (Objects.equals(button, "RScRd26"))
				return RScRd26 ? true : false;
			if (Objects.equals(button, "RScLd26"))
				return RScLd26 ? true : false;
			if (Objects.equals(button, "RScUd26"))
				return RScUd26 ? true : false;
			if (Objects.equals(button, "RScDd26"))
				return RScDd26 ? true : false;
			if (Objects.equals(button, "bRd26"))// if the button is held down
				return bRd26 ? true : false;
			if (Objects.equals(button, "bLd26"))// if the button is held down
				return bLd26 ? true : false;
			if (Objects.equals(button, "bUd26"))// if the button is held down
				return bUd26 ? true : false;
			if (Objects.equals(button, "bDd26"))// if the button is held down
				return bDd26 ? true : false;
			if (Objects.equals(button, "b_5d26"))
				return b_5d26 ? true : false;
			if (Objects.equals(button, "b_11d26"))
				return b_11d26 ? true : false;
			if (Objects.equals(button, "b_12d26"))
				return b_12d26 ? true : false;
			if (Objects.equals(button, "b_13d26"))
				return b_13d26 ? true : false;
			if (Objects.equals(button, "b_14d26"))
				return b_14d26 ? true : false;
			if (Objects.equals(button, "bSeld26"))// if the button is held down
				return bSeld26 ? true : false;
			if (Objects.equals(button, "bStd26"))// if the button is held down
				return bStd26 ? true : false;
			if (Objects.equals(button, "bLTd26"))// if the button is held down
				return bLTd26 ? true : false;
			if (Objects.equals(button, "bRTd26"))// if the button is held down
				return bRTd26 ? true : false;
			if (Objects.equals(button, "bLPd26"))// if the button is held down
				return bLPd26 ? true : false;
			if (Objects.equals(button, "bRPd26"))// if the button is held down
				return bRPd26 ? true : false;
			if (Objects.equals(button, "bLJBd26"))// if the button is held down
				return bLJBd26 ? true : false;
			if (Objects.equals(button, "bRJBd26"))// if the button is held down
				return bRJBd26 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwentySevenButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd27")) {
				if (LScRd27 && !LScRp27) {
					LScRp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd27")) {
				if (LScDd27 && !LScDp27) {
					LScDp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd27")) {
				if (LScLd27 && !LScLp27) {
					LScLp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd27")) {
				if (LScUd27 && !LScUp27) {
					LScUp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd27")) {
				if (RScRd27 && !RScRp27) {
					RScRp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd27")) {
				if (RScDd27 && !RScDp27) {
					RScDp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd27")) {
				if (RScLd27 && !RScLp27) {
					RScLp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd27")) {
				if (RScUd27 && !RScUp27) {
					RScUp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d27")) {
				if (b_5d27 && !b_5p27) {
					b_5p27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d27")) {
				if (b_11d27 && !b_11p27) {
					b_11p27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d27")) {
				if (b_12d27 && !b_12p27) {
					b_12p27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d27")) {
				if (b_13d27 && !b_13p27) {
					b_13p27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d27")) {
				if (b_14d27 && !b_14p27) {
					b_14p27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd27")) {
				if (bRd27 && !bRp27) {
					bRp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd27")) {
				if (bLd27 && !bLp27) {
					bLp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd27")) {
				if (bUd27 && !bUp27) {
					bUp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd27")) {
				if (bDd27 && !bDp27) {
					bDp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld27")) {
				if (bSeld27 && !bSelp27) {
					bSelp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd27")) {
				if (bStd27 && !bStp27) {
					bStp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd27")) {
				if (bLTd27 && !bLTp27) {
					bLTp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd27")) {
				if (bRTd27 && !bRTp27) {
					bRTp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd27")) {
				if (bLPd27 && !bLPp27) {
					bLPp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd27")) {
				if (bRPd27 && !bRPp27) {
					bRPp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd27")) {
				if (bLJBd27 && !bLJBp27) {
					bLJBp27 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd27")) {
				if (bRJBd27 && !bRJBp27) {
					bRJBp27 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd27"))
				return LScRd27 ? true : false;
			if (Objects.equals(button, "LScLd27"))
				return LScLd27 ? true : false;
			if (Objects.equals(button, "LScUd27"))
				return LScUd27 ? true : false;
			if (Objects.equals(button, "LScDd27"))
				return LScDd27 ? true : false;
			if (Objects.equals(button, "RScRd27"))
				return RScRd27 ? true : false;
			if (Objects.equals(button, "RScLd27"))
				return RScLd27 ? true : false;
			if (Objects.equals(button, "RScUd27"))
				return RScUd27 ? true : false;
			if (Objects.equals(button, "RScDd27"))
				return RScDd27 ? true : false;
			if (Objects.equals(button, "bRd27"))// if the button is held down
				return bRd27 ? true : false;
			if (Objects.equals(button, "bLd27"))// if the button is held down
				return bLd27 ? true : false;
			if (Objects.equals(button, "bUd27"))// if the button is held down
				return bUd27 ? true : false;
			if (Objects.equals(button, "bDd27"))// if the button is held down
				return bDd27 ? true : false;
			if (Objects.equals(button, "b_5d27"))
				return b_5d27 ? true : false;
			if (Objects.equals(button, "b_11d27"))
				return b_11d27 ? true : false;
			if (Objects.equals(button, "b_12d27"))
				return b_12d27 ? true : false;
			if (Objects.equals(button, "b_13d27"))
				return b_13d27 ? true : false;
			if (Objects.equals(button, "b_14d27"))
				return b_14d27 ? true : false;
			if (Objects.equals(button, "bSeld27"))// if the button is held down
				return bSeld27 ? true : false;
			if (Objects.equals(button, "bStd27"))// if the button is held down
				return bStd27 ? true : false;
			if (Objects.equals(button, "bLTd27"))// if the button is held down
				return bLTd27 ? true : false;
			if (Objects.equals(button, "bRTd27"))// if the button is held down
				return bRTd27 ? true : false;
			if (Objects.equals(button, "bLPd27"))// if the button is held down
				return bLPd27 ? true : false;
			if (Objects.equals(button, "bRPd27"))// if the button is held down
				return bRPd27 ? true : false;
			if (Objects.equals(button, "bLJBd27"))// if the button is held down
				return bLJBd27 ? true : false;
			if (Objects.equals(button, "bRJBd27"))// if the button is held down
				return bRJBd27 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwentyEightButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd28")) {
				if (LScRd28 && !LScRp28) {
					LScRp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd28")) {
				if (LScDd28 && !LScDp28) {
					LScDp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd28")) {
				if (LScLd28 && !LScLp28) {
					LScLp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd28")) {
				if (LScUd28 && !LScUp28) {
					LScUp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd28")) {
				if (RScRd28 && !RScRp28) {
					RScRp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd28")) {
				if (RScDd28 && !RScDp28) {
					RScDp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd28")) {
				if (RScLd28 && !RScLp28) {
					RScLp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd28")) {
				if (RScUd28 && !RScUp28) {
					RScUp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d28")) {
				if (b_5d28 && !b_5p28) {
					b_5p28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d28")) {
				if (b_11d28 && !b_11p28) {
					b_11p28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d28")) {
				if (b_12d28 && !b_12p28) {
					b_12p28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d28")) {
				if (b_13d28 && !b_13p28) {
					b_13p28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d28")) {
				if (b_14d28 && !b_14p28) {
					b_14p28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd28")) {
				if (bRd28 && !bRp28) {
					bRp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd28")) {
				if (bLd28 && !bLp28) {
					bLp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd28")) {
				if (bUd28 && !bUp28) {
					bUp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd28")) {
				if (bDd28 && !bDp28) {
					bDp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld28")) {
				if (bSeld28 && !bSelp28) {
					bSelp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd28")) {
				if (bStd28 && !bStp28) {
					bStp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd28")) {
				if (bLTd28 && !bLTp28) {
					bLTp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd28")) {
				if (bRTd28 && !bRTp28) {
					bRTp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd28")) {
				if (bLPd28 && !bLPp28) {
					bLPp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd28")) {
				if (bRPd28 && !bRPp28) {
					bRPp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd28")) {
				if (bLJBd28 && !bLJBp28) {
					bLJBp28 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd28")) {
				if (bRJBd28 && !bRJBp28) {
					bRJBp28 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd28"))
				return LScRd28 ? true : false;
			if (Objects.equals(button, "LScLd28"))
				return LScLd28 ? true : false;
			if (Objects.equals(button, "LScUd28"))
				return LScUd28 ? true : false;
			if (Objects.equals(button, "LScDd28"))
				return LScDd28 ? true : false;
			if (Objects.equals(button, "RScRd28"))
				return RScRd28 ? true : false;
			if (Objects.equals(button, "RScLd28"))
				return RScLd28 ? true : false;
			if (Objects.equals(button, "RScUd28"))
				return RScUd28 ? true : false;
			if (Objects.equals(button, "RScDd28"))
				return RScDd28 ? true : false;
			if (Objects.equals(button, "bRd28"))// if the button is held down
				return bRd28 ? true : false;
			if (Objects.equals(button, "bLd28"))// if the button is held down
				return bLd28 ? true : false;
			if (Objects.equals(button, "bUd28"))// if the button is held down
				return bUd28 ? true : false;
			if (Objects.equals(button, "bDd28"))// if the button is held down
				return bDd28 ? true : false;
			if (Objects.equals(button, "b_5d28"))
				return b_5d28 ? true : false;
			if (Objects.equals(button, "b_11d28"))
				return b_11d28 ? true : false;
			if (Objects.equals(button, "b_12d28"))
				return b_12d28 ? true : false;
			if (Objects.equals(button, "b_13d28"))
				return b_13d28 ? true : false;
			if (Objects.equals(button, "b_14d28"))
				return b_14d28 ? true : false;
			if (Objects.equals(button, "bSeld28"))// if the button is held down
				return bSeld28 ? true : false;
			if (Objects.equals(button, "bStd28"))// if the button is held down
				return bStd28 ? true : false;
			if (Objects.equals(button, "bLTd28"))// if the button is held down
				return bLTd28 ? true : false;
			if (Objects.equals(button, "bRTd28"))// if the button is held down
				return bRTd28 ? true : false;
			if (Objects.equals(button, "bLPd28"))// if the button is held down
				return bLPd28 ? true : false;
			if (Objects.equals(button, "bRPd28"))// if the button is held down
				return bRPd28 ? true : false;
			if (Objects.equals(button, "bLJBd28"))// if the button is held down
				return bLJBd28 ? true : false;
			if (Objects.equals(button, "bRJBd28"))// if the button is held down
				return bRJBd28 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerTwentyNineButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd29")) {
				if (LScRd29 && !LScRp29) {
					LScRp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd29")) {
				if (LScDd29 && !LScDp29) {
					LScDp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd29")) {
				if (LScLd29 && !LScLp29) {
					LScLp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd29")) {
				if (LScUd29 && !LScUp29) {
					LScUp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd29")) {
				if (RScRd29 && !RScRp29) {
					RScRp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd29")) {
				if (RScDd29 && !RScDp29) {
					RScDp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd29")) {
				if (RScLd29 && !RScLp29) {
					RScLp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd29")) {
				if (RScUd29 && !RScUp29) {
					RScUp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d29")) {
				if (b_5d29 && !b_5p29) {
					b_5p29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d29")) {
				if (b_11d29 && !b_11p29) {
					b_11p29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d29")) {
				if (b_12d29 && !b_12p29) {
					b_12p29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d29")) {
				if (b_13d29 && !b_13p29) {
					b_13p29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d29")) {
				if (b_14d29 && !b_14p29) {
					b_14p29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd29")) {
				if (bRd29 && !bRp29) {
					bRp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd29")) {
				if (bLd29 && !bLp29) {
					bLp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd29")) {
				if (bUd29 && !bUp29) {
					bUp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd29")) {
				if (bDd29 && !bDp29) {
					bDp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld29")) {
				if (bSeld29 && !bSelp29) {
					bSelp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd29")) {
				if (bStd29 && !bStp29) {
					bStp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd29")) {
				if (bLTd29 && !bLTp29) {
					bLTp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd29")) {
				if (bRTd29 && !bRTp29) {
					bRTp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd29")) {
				if (bLPd29 && !bLPp29) {
					bLPp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd29")) {
				if (bRPd29 && !bRPp29) {
					bRPp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd29")) {
				if (bLJBd29 && !bLJBp29) {
					bLJBp29 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd29")) {
				if (bRJBd29 && !bRJBp29) {
					bRJBp29 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd29"))
				return LScRd29 ? true : false;
			if (Objects.equals(button, "LScLd29"))
				return LScLd29 ? true : false;
			if (Objects.equals(button, "LScUd29"))
				return LScUd29 ? true : false;
			if (Objects.equals(button, "LScDd29"))
				return LScDd29 ? true : false;
			if (Objects.equals(button, "RScRd29"))
				return RScRd29 ? true : false;
			if (Objects.equals(button, "RScLd29"))
				return RScLd29 ? true : false;
			if (Objects.equals(button, "RScUd29"))
				return RScUd29 ? true : false;
			if (Objects.equals(button, "RScDd29"))
				return RScDd29 ? true : false;
			if (Objects.equals(button, "bRd29"))// if the button is held down
				return bRd29 ? true : false;
			if (Objects.equals(button, "bLd29"))// if the button is held down
				return bLd29 ? true : false;
			if (Objects.equals(button, "bUd29"))// if the button is held down
				return bUd29 ? true : false;
			if (Objects.equals(button, "bDd29"))// if the button is held down
				return bDd29 ? true : false;
			if (Objects.equals(button, "b_5d29"))
				return b_5d29 ? true : false;
			if (Objects.equals(button, "b_11d29"))
				return b_11d29 ? true : false;
			if (Objects.equals(button, "b_12d29"))
				return b_12d29 ? true : false;
			if (Objects.equals(button, "b_13d29"))
				return b_13d29 ? true : false;
			if (Objects.equals(button, "b_14d29"))
				return b_14d29 ? true : false;
			if (Objects.equals(button, "bSeld29"))// if the button is held down
				return bSeld29 ? true : false;
			if (Objects.equals(button, "bStd29"))// if the button is held down
				return bStd29 ? true : false;
			if (Objects.equals(button, "bLTd29"))// if the button is held down
				return bLTd29 ? true : false;
			if (Objects.equals(button, "bRTd29"))// if the button is held down
				return bRTd29 ? true : false;
			if (Objects.equals(button, "bLPd29"))// if the button is held down
				return bLPd29 ? true : false;
			if (Objects.equals(button, "bRPd29"))// if the button is held down
				return bRPd29 ? true : false;
			if (Objects.equals(button, "bLJBd29"))// if the button is held down
				return bLJBd29 ? true : false;
			if (Objects.equals(button, "bRJBd29"))// if the button is held down
				return bRJBd29 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerThirtyButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd30")) {
				if (LScRd30 && !LScRp30) {
					LScRp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd30")) {
				if (LScDd30 && !LScDp30) {
					LScDp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd30")) {
				if (LScLd30 && !LScLp30) {
					LScLp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd30")) {
				if (LScUd30 && !LScUp30) {
					LScUp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd30")) {
				if (RScRd30 && !RScRp30) {
					RScRp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd30")) {
				if (RScDd30 && !RScDp30) {
					RScDp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd30")) {
				if (RScLd30 && !RScLp30) {
					RScLp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd30")) {
				if (RScUd30 && !RScUp30) {
					RScUp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d30")) {
				if (b_5d30 && !b_5p30) {
					b_5p30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d30")) {
				if (b_11d30 && !b_11p30) {
					b_11p30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d30")) {
				if (b_12d30 && !b_12p30) {
					b_12p30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d30")) {
				if (b_13d30 && !b_13p30) {
					b_13p30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d30")) {
				if (b_14d30 && !b_14p30) {
					b_14p30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd30")) {
				if (bRd30 && !bRp30) {
					bRp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd30")) {
				if (bLd30 && !bLp30) {
					bLp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd30")) {
				if (bUd30 && !bUp30) {
					bUp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd30")) {
				if (bDd30 && !bDp30) {
					bDp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld30")) {
				if (bSeld30 && !bSelp30) {
					bSelp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd30")) {
				if (bStd30 && !bStp30) {
					bStp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd30")) {
				if (bLTd30 && !bLTp30) {
					bLTp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd30")) {
				if (bRTd30 && !bRTp30) {
					bRTp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd30")) {
				if (bLPd30 && !bLPp30) {
					bLPp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd30")) {
				if (bRPd30 && !bRPp30) {
					bRPp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd30")) {
				if (bLJBd30 && !bLJBp30) {
					bLJBp30 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd30")) {
				if (bRJBd30 && !bRJBp30) {
					bRJBp30 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd30"))
				return LScRd30 ? true : false;
			if (Objects.equals(button, "LScLd30"))
				return LScLd30 ? true : false;
			if (Objects.equals(button, "LScUd30"))
				return LScUd30 ? true : false;
			if (Objects.equals(button, "LScDd30"))
				return LScDd30 ? true : false;
			if (Objects.equals(button, "RScRd30"))
				return RScRd30 ? true : false;
			if (Objects.equals(button, "RScLd30"))
				return RScLd30 ? true : false;
			if (Objects.equals(button, "RScUd30"))
				return RScUd30 ? true : false;
			if (Objects.equals(button, "RScDd30"))
				return RScDd30 ? true : false;
			if (Objects.equals(button, "bRd30"))// if the button is held down
				return bRd30 ? true : false;
			if (Objects.equals(button, "bLd30"))// if the button is held down
				return bLd30 ? true : false;
			if (Objects.equals(button, "bUd30"))// if the button is held down
				return bUd30 ? true : false;
			if (Objects.equals(button, "bDd30"))// if the button is held down
				return bDd30 ? true : false;
			if (Objects.equals(button, "b_5d30"))
				return b_5d30 ? true : false;
			if (Objects.equals(button, "b_11d30"))
				return b_11d30 ? true : false;
			if (Objects.equals(button, "b_12d30"))
				return b_12d30 ? true : false;
			if (Objects.equals(button, "b_13d30"))
				return b_13d30 ? true : false;
			if (Objects.equals(button, "b_14d30"))
				return b_14d30 ? true : false;
			if (Objects.equals(button, "bSeld30"))// if the button is held down
				return bSeld30 ? true : false;
			if (Objects.equals(button, "bStd30"))// if the button is held down
				return bStd30 ? true : false;
			if (Objects.equals(button, "bLTd30"))// if the button is held down
				return bLTd30 ? true : false;
			if (Objects.equals(button, "bRTd30"))// if the button is held down
				return bRTd30 ? true : false;
			if (Objects.equals(button, "bLPd30"))// if the button is held down
				return bLPd30 ? true : false;
			if (Objects.equals(button, "bRPd30"))// if the button is held down
				return bRPd30 ? true : false;
			if (Objects.equals(button, "bLJBd30"))// if the button is held down
				return bLJBd30 ? true : false;
			if (Objects.equals(button, "bRJBd30"))// if the button is held down
				return bRJBd30 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerThirtyOneButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd31")) {
				if (LScRd31 && !LScRp31) {
					LScRp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd31")) {
				if (LScDd31 && !LScDp31) {
					LScDp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd31")) {
				if (LScLd31 && !LScLp31) {
					LScLp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd31")) {
				if (LScUd31 && !LScUp31) {
					LScUp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd31")) {
				if (RScRd31 && !RScRp31) {
					RScRp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd31")) {
				if (RScDd31 && !RScDp31) {
					RScDp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd31")) {
				if (RScLd31 && !RScLp31) {
					RScLp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd31")) {
				if (RScUd31 && !RScUp31) {
					RScUp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d31")) {
				if (b_5d31 && !b_5p31) {
					b_5p31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d31")) {
				if (b_11d31 && !b_11p31) {
					b_11p31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d31")) {
				if (b_12d31 && !b_12p31) {
					b_12p31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d31")) {
				if (b_13d31 && !b_13p31) {
					b_13p31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d31")) {
				if (b_14d31 && !b_14p31) {
					b_14p31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd31")) {
				if (bRd31 && !bRp31) {
					bRp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd31")) {
				if (bLd31 && !bLp31) {
					bLp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd31")) {
				if (bUd31 && !bUp31) {
					bUp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd31")) {
				if (bDd31 && !bDp31) {
					bDp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld31")) {
				if (bSeld31 && !bSelp31) {
					bSelp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd31")) {
				if (bStd31 && !bStp31) {
					bStp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd31")) {
				if (bLTd31 && !bLTp31) {
					bLTp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd31")) {
				if (bRTd31 && !bRTp31) {
					bRTp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd31")) {
				if (bLPd31 && !bLPp31) {
					bLPp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd31")) {
				if (bRPd31 && !bRPp31) {
					bRPp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd31")) {
				if (bLJBd31 && !bLJBp31) {
					bLJBp31 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd31")) {
				if (bRJBd31 && !bRJBp31) {
					bRJBp31 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd31"))
				return LScRd31 ? true : false;
			if (Objects.equals(button, "LScLd31"))
				return LScLd31 ? true : false;
			if (Objects.equals(button, "LScUd31"))
				return LScUd31 ? true : false;
			if (Objects.equals(button, "LScDd31"))
				return LScDd31 ? true : false;
			if (Objects.equals(button, "RScRd31"))
				return RScRd31 ? true : false;
			if (Objects.equals(button, "RScLd31"))
				return RScLd31 ? true : false;
			if (Objects.equals(button, "RScUd31"))
				return RScUd31 ? true : false;
			if (Objects.equals(button, "RScDd31"))
				return RScDd31 ? true : false;
			if (Objects.equals(button, "bRd31"))// if the button is held down
				return bRd31 ? true : false;
			if (Objects.equals(button, "bLd31"))// if the button is held down
				return bLd31 ? true : false;
			if (Objects.equals(button, "bUd31"))// if the button is held down
				return bUd31 ? true : false;
			if (Objects.equals(button, "bDd31"))// if the button is held down
				return bDd31 ? true : false;
			if (Objects.equals(button, "b_5d31"))
				return b_5d31 ? true : false;
			if (Objects.equals(button, "b_11d31"))
				return b_11d31 ? true : false;
			if (Objects.equals(button, "b_12d31"))
				return b_12d31 ? true : false;
			if (Objects.equals(button, "b_13d31"))
				return b_13d31 ? true : false;
			if (Objects.equals(button, "b_14d31"))
				return b_14d31 ? true : false;
			if (Objects.equals(button, "bSeld31"))// if the button is held down
				return bSeld31 ? true : false;
			if (Objects.equals(button, "bStd31"))// if the button is held down
				return bStd31 ? true : false;
			if (Objects.equals(button, "bLTd31"))// if the button is held down
				return bLTd31 ? true : false;
			if (Objects.equals(button, "bRTd31"))// if the button is held down
				return bRTd31 ? true : false;
			if (Objects.equals(button, "bLPd31"))// if the button is held down
				return bLPd31 ? true : false;
			if (Objects.equals(button, "bRPd31"))// if the button is held down
				return bRPd31 ? true : false;
			if (Objects.equals(button, "bLJBd31"))// if the button is held down
				return bLJBd31 ? true : false;
			if (Objects.equals(button, "bRJBd31"))// if the button is held down
				return bRJBd31 ? true : false;
			else
				return false;
		}
	}

	private static boolean checkControllerThirtyTwoButtons(String button, String buttonState) {
		if (buttonState == "pressed") {
			if (Objects.equals(button, "LScRd32")) {
				if (LScRd32 && !LScRp32) {
					LScRp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScDd32")) {
				if (LScDd32 && !LScDp32) {
					LScDp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScLd32")) {
				if (LScLd32 && !LScLp32) {
					LScLp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "LScUd32")) {
				if (LScUd32 && !LScUp32) {
					LScUp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScRd32")) {
				if (RScRd32 && !RScRp32) {
					RScRp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScDd32")) {
				if (RScDd32 && !RScDp32) {
					RScDp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScLd32")) {
				if (RScLd32 && !RScLp32) {
					RScLp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "RScUd32")) {
				if (RScUd32 && !RScUp32) {
					RScUp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_5d32")) {
				if (b_5d32 && !b_5p32) {
					b_5p32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_11d32")) {
				if (b_11d32 && !b_11p32) {
					b_11p32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_12d32")) {
				if (b_12d32 && !b_12p32) {
					b_12p32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_13d32")) {
				if (b_13d32 && !b_13p32) {
					b_13p32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "b_14d32")) {
				if (b_14d32 && !b_14p32) {
					b_14p32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRd32")) {
				if (bRd32 && !bRp32) {
					bRp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLd32")) {
				if (bLd32 && !bLp32) {
					bLp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bUd32")) {
				if (bUd32 && !bUp32) {
					bUp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bDd32")) {
				if (bDd32 && !bDp32) {
					bDp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bSeld32")) {
				if (bSeld32 && !bSelp32) {
					bSelp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bStd32")) {
				if (bStd32 && !bStp32) {
					bStp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLTd32")) {
				if (bLTd32 && !bLTp32) {
					bLTp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRTd32")) {
				if (bRTd32 && !bRTp32) {
					bRTp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLPd32")) {
				if (bLPd32 && !bLPp32) {
					bLPp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRPd32")) {
				if (bRPd32 && !bRPp32) {
					bRPp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bLJBd32")) {
				if (bLJBd32 && !bLJBp32) {
					bLJBp32 = true;
					return true;
				} else
					return false;
			} else if (Objects.equals(button, "bRJBd32")) {
				if (bRJBd32 && !bRJBp32) {
					bRJBp32 = true;
					return true;
				} else
					return false;
			} else
				return false;
		} else {
			if (Objects.equals(button, "LScRd32"))
				return LScRd32 ? true : false;
			if (Objects.equals(button, "LScLd32"))
				return LScLd32 ? true : false;
			if (Objects.equals(button, "LScUd32"))
				return LScUd32 ? true : false;
			if (Objects.equals(button, "LScDd32"))
				return LScDd32 ? true : false;
			if (Objects.equals(button, "RScRd32"))
				return RScRd32 ? true : false;
			if (Objects.equals(button, "RScLd32"))
				return RScLd32 ? true : false;
			if (Objects.equals(button, "RScUd32"))
				return RScUd32 ? true : false;
			if (Objects.equals(button, "RScDd32"))
				return RScDd32 ? true : false;
			if (Objects.equals(button, "bRd32"))// if the button is held down
				return bRd32 ? true : false;
			if (Objects.equals(button, "bLd32"))// if the button is held down
				return bLd32 ? true : false;
			if (Objects.equals(button, "bUd32"))// if the button is held down
				return bUd32 ? true : false;
			if (Objects.equals(button, "bDd32"))// if the button is held down
				return bDd32 ? true : false;
			if (Objects.equals(button, "b_5d32"))
				return b_5d32 ? true : false;
			if (Objects.equals(button, "b_11d32"))
				return b_11d32 ? true : false;
			if (Objects.equals(button, "b_12d32"))
				return b_12d32 ? true : false;
			if (Objects.equals(button, "b_13d32"))
				return b_13d32 ? true : false;
			if (Objects.equals(button, "b_14d32"))
				return b_14d32 ? true : false;
			if (Objects.equals(button, "bSeld32"))// if the button is held down
				return bSeld32 ? true : false;
			if (Objects.equals(button, "bStd32"))// if the button is held down
				return bStd32 ? true : false;
			if (Objects.equals(button, "bLTd32"))// if the button is held down
				return bLTd32 ? true : false;
			if (Objects.equals(button, "bRTd32"))// if the button is held down
				return bRTd32 ? true : false;
			if (Objects.equals(button, "bLPd32"))// if the button is held down
				return bLPd32 ? true : false;
			if (Objects.equals(button, "bRPd32"))// if the button is held down
				return bRPd32 ? true : false;
			if (Objects.equals(button, "bLJBd32"))// if the button is held down
				return bLJBd32 ? true : false;
			if (Objects.equals(button, "bRJBd32"))// if the button is held down
				return bRJBd32 ? true : false;
			else
				return false;
		}
	}

	@Override
	public void connected(Controller controller) {
		_name = controller.getName();
		_id = controller.getUniqueId();
		System.out.println("connected does this even register?? controller to the game. Controller: " + controller);
		System.out.println("connected does this even register?? to the game. Name: " + _name);
		System.out.println("connected does this even register?? to the game. Id: " + _id);
	}

	@Override
	public void disconnected(Controller controller) {
		controller.getName();
		System.out.println("disconnected GLOBALcontroller from the game. Controller: " + controller);

	}

	@Override
	public boolean buttonDown(Controller controller, int buttonCode) {
		System.out.println("pressed the button down. GLOBALController: " + controller + " buttonCode: " + buttonCode);
		return false;
	}

	@Override
	public boolean buttonUp(Controller controller, int buttonCode) {
		System.out.println("released the button up. GLOBALController: " + controller + " buttonCode: " + buttonCode);
		return false;
	}

	@Override
	public boolean axisMoved(Controller controller, int axisCode, float value) {
		System.out.println("moved the axis. GLOBALControllerId: " + controller.getUniqueId() + " axisCode: " + axisCode + " value: " + value);
		return false;
	}

	private void SetControllers() {
		for (int i = 0; i < Controllers.getControllers().size; i++) {
			if (i == 0) {
				controller = Controllers.getControllers().get(i);
				controller.getUniqueId();
				controller.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller1 controller to the game. Controller: " + controller);
						System.out.println("connected controller1 controller to the game. Name: " + _name);
						System.out.println("connected controller1 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller1 controller from the game. Controller: " + controller);

					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						System.out.println("pressed the controller1 button down. Controller: " + controller + " buttonCode: " + buttonCode);
						if (buttonCode == 2) {
							bLd = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d = true;
							return false;
						}
						if (buttonCode == 12) {
							b_12d = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						System.out.println("released the controller1 button up. Controller: " + controller + " buttonCode: " + buttonCode);
						if (buttonCode == 2)
							bLd = false;
						if (buttonCode == 1)
							bRd = false;
						if (buttonCode == 3)
							bUd = false;
						if (buttonCode == 0)
							bDd = false;
						if (buttonCode == 4)
							bSeld = false;
						if (buttonCode == 5)
							b_5d = false;
						if (buttonCode == 6)
							bStd = false;
						if (buttonCode == 7)
							bLJBd = false;
						if (buttonCode == 8)
							bRJBd = false;
						if (buttonCode == 9)
							bLTd = false;
						if (buttonCode == 10)
							bRTd = false;
						if (buttonCode == 11)
							b_11d = false;
						if (buttonCode == 12)
							b_12d = false;
						if (buttonCode == 13)
							b_13d = false;
						if (buttonCode == 14)
							b_14d = false;
						bLp = false;
						bRp = false;
						bUp = false;
						bDp = false;
						bSelp = false;
						bStp = false;
						bLTp = false;
						bRTp = false;
						bLJBp = false;
						bRJBp = false;
						b_5p = false;
						b_11p = false;
						b_12p = false;
						b_13p = false;
						b_14p = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						System.out.println("moved the controller1 axis. ControllerId: " + controller.getUniqueId() + " axisCode: " + axisCode + " value: " + value);
						if (controller.getAxis(0) < -.05) {
							LScLd = true;
						} else {
							LScLd = false;
							LScLp = false;
						}
						if (controller.getAxis(0) > .05) {
							LScRd = true;
						} else {
							LScRd = false;
							LScRp = false;
						}
						if (controller.getAxis(1) < -.05) {
							LScUd = true;
						} else {
							LScUd = false;
							LScUp = false;
						}
						if (controller.getAxis(1) > .05) {
							LScDd = true;
						} else {
							LScDd = false;
							LScDp = false;
						}
						if (controller.getAxis(2) < -.05) {
							RScLd = true;
						} else {
							RScLd = false;
							RScLp = false;
						}
						if (controller.getAxis(2) > .05) {
							RScRd = true;
						} else {
							RScRd = false;
							RScRp = false;
						}
						if (controller.getAxis(3) < -.05) {
							RScUd = true;
						} else {
							RScUd = false;
							RScUp = false;
						}
						if (controller.getAxis(3) > .05) {
							RScDd = true;
						} else {
							RScDd = false;
							RScDp = false;
						}
						if (controller.getAxis(4) > .05) {
							bLPd = true;
						} else {
							bLPd = false;
							bLPp = false;
						}
						if (controller.getAxis(5) > .05) {
							bRPd = true;
						} else {
							bRPd = false;
							bRPp = false;
						}
						return false;
					}
				});
			}
			if (i == 1) {
				controller2 = Controllers.getControllers().get(i);
				controller2.getUniqueId();
				controller2.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller2 controller to the game. Controller: " + controller);
						System.out.println("connected controller2 controller to the game. Name: " + _name);
						System.out.println("connected controller2 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller2 controller from the game. Controller: " + controller);

					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						System.out.println("pressed the controller2 button down. Controller: " + controller + " buttonCode: " + buttonCode);
						if (buttonCode == 2) {
							bLd2 = true;
							System.out.println("it's set to true. see? " + bLd2);
							return false;
						}
						if (buttonCode == 1) {
							bRd2 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd2 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd2 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld2 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d2 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd2 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd2 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd2 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd2 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd2 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d2 = true;
							return false;
						}
						if (buttonCode == 12) {
							b_12d2 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d2 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d2 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						System.out.println("released the controller2 button up. Controller: " + controller + " buttonCode: " + buttonCode);
						if (buttonCode == 2)
							bLd2 = false;
						if (buttonCode == 1)
							bRd2 = false;
						if (buttonCode == 3)
							bUd2 = false;
						if (buttonCode == 0)
							bDd2 = false;
						if (buttonCode == 4)
							bSeld2 = false;
						if (buttonCode == 5)
							b_5d2 = false;
						if (buttonCode == 6)
							bStd2 = false;
						if (buttonCode == 7)
							bLJBd2 = false;
						if (buttonCode == 8)
							bRJBd2 = false;
						if (buttonCode == 9)
							bLTd2 = false;
						if (buttonCode == 10)
							bRTd2 = false;
						if (buttonCode == 11)
							b_11d2 = false;
						if (buttonCode == 12)
							b_12d2 = false;
						if (buttonCode == 13)
							b_13d2 = false;
						if (buttonCode == 14)
							b_14d2 = false;
						bLp2 = false;
						bRp2 = false;
						bUp2 = false;
						bDp2 = false;
						bSelp2 = false;
						bStp2 = false;
						bLTp2 = false;
						bRTp2 = false;
						bLJBp2 = false;
						bRJBp2 = false;
						b_5p2 = false;
						b_11p2 = false;
						b_12p2 = false;
						b_13p2 = false;
						b_14p2 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						System.out.println("moved the controller2 axis. ControllerId: " + controller.getUniqueId() + " axisCode: " + axisCode + " value: " + value);
						double sensitivity = .2f;
						if (controller.getAxis(0) <= -sensitivity) {
							LScLd2 = true;
						} else {
							LScLd2 = false;
							LScLp2 = false;
						}
						if (controller.getAxis(0) >= sensitivity) {
							LScRd2 = true;
						} else {
							LScRd2 = false;
							LScRp2 = false;
						}
						if (controller.getAxis(1) <= -sensitivity) {
							LScUd2 = true;
						} else {
							LScUd2 = false;
							LScUp2 = false;
						}
						if (controller.getAxis(1) >= sensitivity) {
							LScDd2 = true;
						} else {
							LScDd2 = false;
							LScDp2 = false;
						}
						if (controller.getAxis(2) <= -sensitivity) {
							RScLd2 = true;
						} else {
							RScLd2 = false;
							RScLp2 = false;
						}
						if (controller.getAxis(2) >= sensitivity) {
							RScRd2 = true;
						} else {
							RScRd2 = false;
							RScRp2 = false;
						}
						if (controller.getAxis(3) <= -sensitivity) {
							RScUd2 = true;
						} else {
							RScUd2 = false;
							RScUp2 = false;
						}
						if (controller.getAxis(3) >= sensitivity) {
							RScDd2 = true;
						} else {
							RScDd2 = false;
							RScDp2 = false;
						}
						if (controller.getAxis(4) >= sensitivity) {
							bLPd2 = true;
						} else {
							bLPd2 = false;
							bLPp2 = false;
						}
						if (controller.getAxis(5) >= sensitivity) {
							bRPd2 = true;
						} else {
							bRPd2 = false;
							bRPp2 = false;
						}
						return true;
					}

				});
			}
			if (i == 2) {
				controller3 = Controllers.getControllers().get(i);
				controller3.getUniqueId();
				controller3.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller3 controller to the game. Controller: " + controller);
						System.out.println("connected controller3 controller to the game. Name: " + _name);
						System.out.println("connected controller3 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller3 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd3 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd3 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd3 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd3 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld3 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d3 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd3 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd3 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd3 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd3 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd3 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d3 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d3 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d3 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d3 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd3 = false;
						if (buttonCode == 1)
							bRd3 = false;
						if (buttonCode == 3)
							bUd3 = false;
						if (buttonCode == 0)
							bDd3 = false;
						if (buttonCode == 4)
							bSeld3 = false;
						if (buttonCode == 5)
							b_5d3 = false;
						if (buttonCode == 6)
							bStd3 = false;
						if (buttonCode == 7)
							bLJBd3 = false;
						if (buttonCode == 8)
							bRJBd3 = false;
						if (buttonCode == 9)
							bLTd3 = false;
						if (buttonCode == 10)
							bRTd3 = false;
						if (buttonCode == 11)
							b_11d3 = false;
						if (buttonCode == 12)
							b_12d3 = false;
						if (buttonCode == 13)
							b_13d3 = false;
						if (buttonCode == 14)
							b_14d3 = false;
						bRp3 = false;
						bUp3 = false;
						bDp3 = false;
						bSelp3 = false;
						bStp3 = false;
						bLTp3 = false;
						bRTp3 = false;
						bLJBp3 = false;
						bRJBp3 = false;
						b_5p3 = false;
						b_11p3 = false;
						b_12p3 = false;
						b_13p3 = false;
						b_14p3 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						System.out.println("moved the controller3 axis. ControllerId: " + controller.getUniqueId() + " axisCode: " + axisCode + " value: " + value);
						if (controller.getAxis(0) <= -.05) {
							LScLd3 = true;
						} else {
							LScLd3 = false;
							LScLp3 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd3 = true;
						} else {
							LScRd3 = false;
							LScRp3 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd3 = true;
						} else {
							LScUd3 = false;
							LScUp3 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd3 = true;
						} else {
							LScDd3 = false;
							LScDp3 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd3 = true;
						} else {
							RScLd3 = false;
							RScLp3 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd3 = true;
						} else {
							RScRd3 = false;
							RScRp3 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd3 = true;
						} else {
							RScUd3 = false;
							RScUp3 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd3 = true;
						} else {
							RScDd3 = false;
							RScDp3 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd3 = true;
						} else {
							bLPd3 = false;
							bLPp3 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd3 = true;
						} else {
							bRPd3 = false;
							bRPp3 = false;
						}
						return false;
					}

				});
			}
			if (i == 3) {
				controller4 = Controllers.getControllers().get(i);
				controller4.getUniqueId();
				controller4.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller4 controller to the game. Controller: " + controller);
						System.out.println("connected controller4 controller to the game. Name: " + _name);
						System.out.println("connected controller4 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller4 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd4 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd4 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd4 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd4 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld4 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d4 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd4 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd4 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd4 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd4 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd4 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d4 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d4 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d4 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d4 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd4 = false;
						if (buttonCode == 1)
							bRd4 = false;
						if (buttonCode == 3)
							bUd4 = false;
						if (buttonCode == 0)
							bDd4 = false;
						if (buttonCode == 4)
							bSeld4 = false;
						if (buttonCode == 5)
							b_5d4 = false;
						if (buttonCode == 6)
							bStd4 = false;
						if (buttonCode == 7)
							bLJBd4 = false;
						if (buttonCode == 8)
							bRJBd4 = false;
						if (buttonCode == 9)
							bLTd4 = false;
						if (buttonCode == 10)
							bRTd4 = false;
						if (buttonCode == 11)
							b_11d4 = false;
						if (buttonCode == 12)
							b_12d4 = false;
						if (buttonCode == 13)
							b_13d4 = false;
						if (buttonCode == 14)
							b_14d4 = false;
						bRp4 = false;
						bUp4 = false;
						bDp4 = false;
						bSelp4 = false;
						bStp4 = false;
						bLTp4 = false;
						bRTp4 = false;
						bLJBp4 = false;
						bRJBp4 = false;
						b_5p4 = false;
						b_11p4 = false;
						b_12p4 = false;
						b_13p4 = false;
						b_14p4 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd4 = true;
						} else {
							LScLd4 = false;
							LScLp4 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd4 = true;
						} else {
							LScRd4 = false;
							LScRp4 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd4 = true;
						} else {
							LScUd4 = false;
							LScUp4 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd4 = true;
						} else {
							LScDd4 = false;
							LScDp4 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd4 = true;
						} else {
							RScLd4 = false;
							RScLp4 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd4 = true;
						} else {
							RScRd4 = false;
							RScRp4 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd4 = true;
						} else {
							RScUd4 = false;
							RScUp4 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd4 = true;
						} else {
							RScDd4 = false;
							RScDp4 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd4 = true;
						} else {
							bLPd4 = false;
							bLPp4 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd4 = true;
						} else {
							bRPd4 = false;
							bRPp4 = false;
						}
						return false;
					}

				});
			}
			if (i == 4) {
				controller5 = Controllers.getControllers().get(i);
				controller5.getUniqueId();
				controller5.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller5 controller to the game. Controller: " + controller);
						System.out.println("connected controller5 controller to the game. Name: " + _name);
						System.out.println("connected controller5 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller5 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd5 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd5 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd5 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd5 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld5 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d5 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd5 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd5 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd5 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd5 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd5 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d5 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d5 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d5 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d5 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd5 = false;
						if (buttonCode == 1)
							bRd5 = false;
						if (buttonCode == 3)
							bUd5 = false;
						if (buttonCode == 0)
							bDd5 = false;
						if (buttonCode == 4)
							bSeld5 = false;
						if (buttonCode == 5)
							b_5d5 = false;
						if (buttonCode == 6)
							bStd5 = false;
						if (buttonCode == 7)
							bLJBd5 = false;
						if (buttonCode == 8)
							bRJBd5 = false;
						if (buttonCode == 9)
							bLTd5 = false;
						if (buttonCode == 10)
							bRTd5 = false;
						if (buttonCode == 11)
							b_11d5 = false;
						if (buttonCode == 12)
							b_12d5 = false;
						if (buttonCode == 13)
							b_13d5 = false;
						if (buttonCode == 14)
							b_14d5 = false;
						bRp5 = false;
						bUp5 = false;
						bDp5 = false;
						bSelp5 = false;
						bStp5 = false;
						bLTp5 = false;
						bRTp5 = false;
						bLJBp5 = false;
						bRJBp5 = false;
						b_5p5 = false;
						b_11p5 = false;
						b_12p5 = false;
						b_13p5 = false;
						b_14p5 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd5 = true;
						} else {
							LScLd5 = false;
							LScLp5 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd5 = true;
						} else {
							LScRd5 = false;
							LScRp5 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd5 = true;
						} else {
							LScUd5 = false;
							LScUp5 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd5 = true;
						} else {
							LScDd5 = false;
							LScDp5 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd5 = true;
						} else {
							RScLd5 = false;
							RScLp5 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd5 = true;
						} else {
							RScRd5 = false;
							RScRp5 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd5 = true;
						} else {
							RScUd5 = false;
							RScUp5 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd5 = true;
						} else {
							RScDd5 = false;
							RScDp5 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd5 = true;
						} else {
							bLPd5 = false;
							bLPp5 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd5 = true;
						} else {
							bRPd5 = false;
							bRPp5 = false;
						}
						return false;
					}

				});
			}
			if (i == 5) {
				controller6 = Controllers.getControllers().get(i);
				controller6.getUniqueId();
				controller6.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller6 controller to the game. Controller: " + controller);
						System.out.println("connected controller6 controller to the game. Name: " + _name);
						System.out.println("connected controller6 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller6 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd6 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd6 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd6 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd6 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld6 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d6 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd6 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd6 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd6 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd6 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd6 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d6 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d6 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d6 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d6 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd6 = false;
						if (buttonCode == 1)
							bRd6 = false;
						if (buttonCode == 3)
							bUd6 = false;
						if (buttonCode == 0)
							bDd6 = false;
						if (buttonCode == 4)
							bSeld6 = false;
						if (buttonCode == 5)
							b_5d6 = false;
						if (buttonCode == 6)
							bStd6 = false;
						if (buttonCode == 7)
							bLJBd6 = false;
						if (buttonCode == 8)
							bRJBd6 = false;
						if (buttonCode == 9)
							bLTd6 = false;
						if (buttonCode == 10)
							bRTd6 = false;
						if (buttonCode == 11)
							b_11d6 = false;
						if (buttonCode == 12)
							b_12d6 = false;
						if (buttonCode == 13)
							b_13d6 = false;
						if (buttonCode == 14)
							b_14d6 = false;
						bRp6 = false;
						bUp6 = false;
						bDp6 = false;
						bSelp6 = false;
						bStp6 = false;
						bLTp6 = false;
						bRTp6 = false;
						bLJBp6 = false;
						bRJBp6 = false;
						b_5p6 = false;
						b_11p6 = false;
						b_12p6 = false;
						b_13p6 = false;
						b_14p6 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd6 = true;
						} else {
							LScLd6 = false;
							LScLp6 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd6 = true;
						} else {
							LScRd6 = false;
							LScRp6 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd6 = true;
						} else {
							LScUd6 = false;
							LScUp6 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd6 = true;
						} else {
							LScDd6 = false;
							LScDp6 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd6 = true;
						} else {
							RScLd6 = false;
							RScLp6 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd6 = true;
						} else {
							RScRd6 = false;
							RScRp6 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd6 = true;
						} else {
							RScUd6 = false;
							RScUp6 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd6 = true;
						} else {
							RScDd6 = false;
							RScDp6 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd6 = true;
						} else {
							bLPd6 = false;
							bLPp6 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd6 = true;
						} else {
							bRPd6 = false;
							bRPp6 = false;
						}
						return false;
					}

				});
			}
			if (i == 6) {
				controller7 = Controllers.getControllers().get(i);
				controller7.getUniqueId();
				controller7.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller7 controller to the game. Controller: " + controller);
						System.out.println("connected controller7 controller to the game. Name: " + _name);
						System.out.println("connected controller7 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller7 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd7 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd7 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd7 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd7 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld7 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d7 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd7 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd7 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd7 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd7 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd7 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d7 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d7 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d7 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d7 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd7 = false;
						if (buttonCode == 1)
							bRd7 = false;
						if (buttonCode == 3)
							bUd7 = false;
						if (buttonCode == 0)
							bDd7 = false;
						if (buttonCode == 4)
							bSeld7 = false;
						if (buttonCode == 5)
							b_5d7 = false;
						if (buttonCode == 6)
							bStd7 = false;
						if (buttonCode == 7)
							bLJBd7 = false;
						if (buttonCode == 8)
							bRJBd7 = false;
						if (buttonCode == 9)
							bLTd7 = false;
						if (buttonCode == 10)
							bRTd7 = false;
						if (buttonCode == 11)
							b_11d7 = false;
						if (buttonCode == 12)
							b_12d7 = false;
						if (buttonCode == 13)
							b_13d7 = false;
						if (buttonCode == 14)
							b_14d7 = false;
						bRp7 = false;
						bUp7 = false;
						bDp7 = false;
						bSelp7 = false;
						bStp7 = false;
						bLTp7 = false;
						bRTp7 = false;
						bLJBp7 = false;
						bRJBp7 = false;
						b_5p7 = false;
						b_11p7 = false;
						b_12p7 = false;
						b_13p7 = false;
						b_14p7 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd7 = true;
						} else {
							LScLd7 = false;
							LScLp7 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd7 = true;
						} else {
							LScRd7 = false;
							LScRp7 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd7 = true;
						} else {
							LScUd7 = false;
							LScUp7 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd7 = true;
						} else {
							LScDd7 = false;
							LScDp7 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd7 = true;
						} else {
							RScLd7 = false;
							RScLp7 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd7 = true;
						} else {
							RScRd7 = false;
							RScRp7 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd7 = true;
						} else {
							RScUd7 = false;
							RScUp7 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd7 = true;
						} else {
							RScDd7 = false;
							RScDp7 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd7 = true;
						} else {
							bLPd7 = false;
							bLPp7 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd7 = true;
						} else {
							bRPd7 = false;
							bRPp7 = false;
						}
						return false;
					}

				});
			}
			if (i == 7) {
				controller8 = Controllers.getControllers().get(i);
				controller8.getUniqueId();
				controller8.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller8 controller to the game. Controller: " + controller);
						System.out.println("connected controller8 controller to the game. Name: " + _name);
						System.out.println("connected controller8 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller8 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd8 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd8 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd8 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd8 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld8 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d8 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd8 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd8 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd8 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd8 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd8 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d8 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d8 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d8 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d8 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd8 = false;
						if (buttonCode == 1)
							bRd8 = false;
						if (buttonCode == 3)
							bUd8 = false;
						if (buttonCode == 0)
							bDd8 = false;
						if (buttonCode == 4)
							bSeld8 = false;
						if (buttonCode == 5)
							b_5d8 = false;
						if (buttonCode == 6)
							bStd8 = false;
						if (buttonCode == 7)
							bLJBd8 = false;
						if (buttonCode == 8)
							bRJBd8 = false;
						if (buttonCode == 9)
							bLTd8 = false;
						if (buttonCode == 10)
							bRTd8 = false;
						if (buttonCode == 11)
							b_11d8 = false;
						if (buttonCode == 12)
							b_12d8 = false;
						if (buttonCode == 13)
							b_13d8 = false;
						if (buttonCode == 14)
							b_14d8 = false;
						bRp8 = false;
						bUp8 = false;
						bDp8 = false;
						bSelp8 = false;
						bStp8 = false;
						bLTp8 = false;
						bRTp8 = false;
						bLJBp8 = false;
						bRJBp8 = false;
						b_5p8 = false;
						b_11p8 = false;
						b_12p8 = false;
						b_13p8 = false;
						b_14p8 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd8 = true;
						} else {
							LScLd8 = false;
							LScLp8 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd8 = true;
						} else {
							LScRd8 = false;
							LScRp8 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd8 = true;
						} else {
							LScUd8 = false;
							LScUp8 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd8 = true;
						} else {
							LScDd8 = false;
							LScDp8 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd8 = true;
						} else {
							RScLd8 = false;
							RScLp8 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd8 = true;
						} else {
							RScRd8 = false;
							RScRp8 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd8 = true;
						} else {
							RScUd8 = false;
							RScUp8 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd8 = true;
						} else {
							RScDd8 = false;
							RScDp8 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd8 = true;
						} else {
							bLPd8 = false;
							bLPp8 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd8 = true;
						} else {
							bRPd8 = false;
							bRPp8 = false;
						}
						return false;
					}

				});
			}
			if (i == 8) {
				controller9 = Controllers.getControllers().get(i);
				controller9.getUniqueId();
				controller9.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller9 controller to the game. Controller: " + controller);
						System.out.println("connected controller9 controller to the game. Name: " + _name);
						System.out.println("connected controller9 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller9 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd9 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd9 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd9 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd9 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld9 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d9 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd9 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd9 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd9 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd9 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd9 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d9 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d9 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d9 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d9 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd9 = false;
						if (buttonCode == 1)
							bRd9 = false;
						if (buttonCode == 3)
							bUd9 = false;
						if (buttonCode == 0)
							bDd9 = false;
						if (buttonCode == 4)
							bSeld9 = false;
						if (buttonCode == 5)
							b_5d9 = false;
						if (buttonCode == 6)
							bStd9 = false;
						if (buttonCode == 7)
							bLJBd9 = false;
						if (buttonCode == 8)
							bRJBd9 = false;
						if (buttonCode == 9)
							bLTd9 = false;
						if (buttonCode == 10)
							bRTd9 = false;
						if (buttonCode == 11)
							b_11d9 = false;
						if (buttonCode == 12)
							b_12d9 = false;
						if (buttonCode == 13)
							b_13d9 = false;
						if (buttonCode == 14)
							b_14d9 = false;
						bRp9 = false;
						bUp9 = false;
						bDp9 = false;
						bSelp9 = false;
						bStp9 = false;
						bLTp9 = false;
						bRTp9 = false;
						bLJBp9 = false;
						bRJBp9 = false;
						b_5p9 = false;
						b_11p9 = false;
						b_12p9 = false;
						b_13p9 = false;
						b_14p9 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd9 = true;
						} else {
							LScLd9 = false;
							LScLp9 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd9 = true;
						} else {
							LScRd9 = false;
							LScRp9 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd9 = true;
						} else {
							LScUd9 = false;
							LScUp9 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd9 = true;
						} else {
							LScDd9 = false;
							LScDp9 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd9 = true;
						} else {
							RScLd9 = false;
							RScLp9 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd9 = true;
						} else {
							RScRd9 = false;
							RScRp9 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd9 = true;
						} else {
							RScUd9 = false;
							RScUp9 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd9 = true;
						} else {
							RScDd9 = false;
							RScDp9 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd9 = true;
						} else {
							bLPd9 = false;
							bLPp9 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd9 = true;
						} else {
							bRPd9 = false;
							bRPp9 = false;
						}
						return false;
					}

				});
			}
			if (i == 9) {
				controller10 = Controllers.getControllers().get(i);
				controller10.getUniqueId();
				controller10.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller10 controller to the game. Controller: " + controller);
						System.out.println("connected controller10 controller to the game. Name: " + _name);
						System.out.println("connected controller10 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller10 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd10 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd10 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd10 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd10 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld10 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d10 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd10 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd10 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd10 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd10 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd10 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d10 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d10 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d10 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d10 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd10 = false;
						if (buttonCode == 1)
							bRd10 = false;
						if (buttonCode == 3)
							bUd10 = false;
						if (buttonCode == 0)
							bDd10 = false;
						if (buttonCode == 4)
							bSeld10 = false;
						if (buttonCode == 5)
							b_5d10 = false;
						if (buttonCode == 6)
							bStd10 = false;
						if (buttonCode == 7)
							bLJBd10 = false;
						if (buttonCode == 8)
							bRJBd10 = false;
						if (buttonCode == 9)
							bLTd10 = false;
						if (buttonCode == 10)
							bRTd10 = false;
						if (buttonCode == 11)
							b_11d10 = false;
						if (buttonCode == 12)
							b_12d10 = false;
						if (buttonCode == 13)
							b_13d10 = false;
						if (buttonCode == 14)
							b_14d10 = false;
						bRp10 = false;
						bUp10 = false;
						bDp10 = false;
						bSelp10 = false;
						bStp10 = false;
						bLTp10 = false;
						bRTp10 = false;
						bLJBp10 = false;
						bRJBp10 = false;
						b_5p10 = false;
						b_11p10 = false;
						b_12p10 = false;
						b_13p10 = false;
						b_14p10 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd10 = true;
						} else {
							LScLd10 = false;
							LScLp10 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd10 = true;
						} else {
							LScRd10 = false;
							LScRp10 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd10 = true;
						} else {
							LScUd10 = false;
							LScUp10 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd10 = true;
						} else {
							LScDd10 = false;
							LScDp10 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd10 = true;
						} else {
							RScLd10 = false;
							RScLp10 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd10 = true;
						} else {
							RScRd10 = false;
							RScRp10 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd10 = true;
						} else {
							RScUd10 = false;
							RScUp10 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd10 = true;
						} else {
							RScDd10 = false;
							RScDp10 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd10 = true;
						} else {
							bLPd10 = false;
							bLPp10 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd10 = true;
						} else {
							bRPd10 = false;
							bRPp10 = false;
						}
						return false;
					}

				});
			}
			if (i == 10) {
				controller11 = Controllers.getControllers().get(i);
				controller11.getUniqueId();
				controller11.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller11 controller to the game. Controller: " + controller);
						System.out.println("connected controller11 controller to the game. Name: " + _name);
						System.out.println("connected controller11 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller11 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd11 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd11 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd11 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd11 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld11 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d11 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd11 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd11 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd11 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd11 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd11 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d11 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d11 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d11 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d11 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd11 = false;
						if (buttonCode == 1)
							bRd11 = false;
						if (buttonCode == 3)
							bUd11 = false;
						if (buttonCode == 0)
							bDd11 = false;
						if (buttonCode == 4)
							bSeld11 = false;
						if (buttonCode == 5)
							b_5d11 = false;
						if (buttonCode == 6)
							bStd11 = false;
						if (buttonCode == 7)
							bLJBd11 = false;
						if (buttonCode == 8)
							bRJBd11 = false;
						if (buttonCode == 9)
							bLTd11 = false;
						if (buttonCode == 10)
							bRTd11 = false;
						if (buttonCode == 11)
							b_11d11 = false;
						if (buttonCode == 12)
							b_12d11 = false;
						if (buttonCode == 13)
							b_13d11 = false;
						if (buttonCode == 14)
							b_14d11 = false;
						bRp11 = false;
						bUp11 = false;
						bDp11 = false;
						bSelp11 = false;
						bStp11 = false;
						bLTp11 = false;
						bRTp11 = false;
						bLJBp11 = false;
						bRJBp11 = false;
						b_5p11 = false;
						b_11p11 = false;
						b_12p11 = false;
						b_13p11 = false;
						b_14p11 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd11 = true;
						} else {
							LScLd11 = false;
							LScLp11 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd11 = true;
						} else {
							LScRd11 = false;
							LScRp11 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd11 = true;
						} else {
							LScUd11 = false;
							LScUp11 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd11 = true;
						} else {
							LScDd11 = false;
							LScDp11 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd11 = true;
						} else {
							RScLd11 = false;
							RScLp11 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd11 = true;
						} else {
							RScRd11 = false;
							RScRp11 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd11 = true;
						} else {
							RScUd11 = false;
							RScUp11 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd11 = true;
						} else {
							RScDd11 = false;
							RScDp11 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd11 = true;
						} else {
							bLPd11 = false;
							bLPp11 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd11 = true;
						} else {
							bRPd11 = false;
							bRPp11 = false;
						}
						return false;
					}

				});
			}
			if (i == 11) {
				controller12 = Controllers.getControllers().get(i);
				controller12.getUniqueId();
				controller12.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller12 controller to the game. Controller: " + controller);
						System.out.println("connected controller12 controller to the game. Name: " + _name);
						System.out.println("connected controller12 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller12 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd12 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd12 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd12 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd12 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld12 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d12 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd12 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd12 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd12 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd12 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd12 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d12 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d12 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d12 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d12 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd12 = false;
						if (buttonCode == 1)
							bRd12 = false;
						if (buttonCode == 3)
							bUd12 = false;
						if (buttonCode == 0)
							bDd12 = false;
						if (buttonCode == 4)
							bSeld12 = false;
						if (buttonCode == 5)
							b_5d12 = false;
						if (buttonCode == 6)
							bStd12 = false;
						if (buttonCode == 7)
							bLJBd12 = false;
						if (buttonCode == 8)
							bRJBd12 = false;
						if (buttonCode == 9)
							bLTd12 = false;
						if (buttonCode == 10)
							bRTd12 = false;
						if (buttonCode == 11)
							b_11d12 = false;
						if (buttonCode == 12)
							b_12d12 = false;
						if (buttonCode == 13)
							b_13d12 = false;
						if (buttonCode == 14)
							b_14d12 = false;
						bRp12 = false;
						bUp12 = false;
						bDp12 = false;
						bSelp12 = false;
						bStp12 = false;
						bLTp12 = false;
						bRTp12 = false;
						bLJBp12 = false;
						bRJBp12 = false;
						b_5p12 = false;
						b_11p12 = false;
						b_12p12 = false;
						b_13p12 = false;
						b_14p12 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd12 = true;
						} else {
							LScLd12 = false;
							LScLp12 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd12 = true;
						} else {
							LScRd12 = false;
							LScRp12 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd12 = true;
						} else {
							LScUd12 = false;
							LScUp12 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd12 = true;
						} else {
							LScDd12 = false;
							LScDp12 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd12 = true;
						} else {
							RScLd12 = false;
							RScLp12 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd12 = true;
						} else {
							RScRd12 = false;
							RScRp12 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd12 = true;
						} else {
							RScUd12 = false;
							RScUp12 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd12 = true;
						} else {
							RScDd12 = false;
							RScDp12 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd12 = true;
						} else {
							bLPd12 = false;
							bLPp12 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd12 = true;
						} else {
							bRPd12 = false;
							bRPp12 = false;
						}
						return false;
					}

				});
			}
			if (i == 12) {
				controller13 = Controllers.getControllers().get(i);
				controller13.getUniqueId();
				controller13.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller13 controller to the game. Controller: " + controller);
						System.out.println("connected controller13 controller to the game. Name: " + _name);
						System.out.println("connected controller13 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller13 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd13 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd13 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd13 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd13 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld13 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d13 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd13 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd13 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd13 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd13 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd13 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d13 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d13 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d13 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d13 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd13 = false;
						if (buttonCode == 1)
							bRd13 = false;
						if (buttonCode == 3)
							bUd13 = false;
						if (buttonCode == 0)
							bDd13 = false;
						if (buttonCode == 4)
							bSeld13 = false;
						if (buttonCode == 5)
							b_5d13 = false;
						if (buttonCode == 6)
							bStd13 = false;
						if (buttonCode == 7)
							bLJBd13 = false;
						if (buttonCode == 8)
							bRJBd13 = false;
						if (buttonCode == 9)
							bLTd13 = false;
						if (buttonCode == 10)
							bRTd13 = false;
						if (buttonCode == 11)
							b_11d13 = false;
						if (buttonCode == 12)
							b_12d13 = false;
						if (buttonCode == 13)
							b_13d13 = false;
						if (buttonCode == 14)
							b_14d13 = false;
						bRp13 = false;
						bUp13 = false;
						bDp13 = false;
						bSelp13 = false;
						bStp13 = false;
						bLTp13 = false;
						bRTp13 = false;
						bLJBp13 = false;
						bRJBp13 = false;
						b_5p13 = false;
						b_11p13 = false;
						b_12p13 = false;
						b_13p13 = false;
						b_14p13 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd13 = true;
						} else {
							LScLd13 = false;
							LScLp13 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd13 = true;
						} else {
							LScRd13 = false;
							LScRp13 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd13 = true;
						} else {
							LScUd13 = false;
							LScUp13 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd13 = true;
						} else {
							LScDd13 = false;
							LScDp13 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd13 = true;
						} else {
							RScLd13 = false;
							RScLp13 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd13 = true;
						} else {
							RScRd13 = false;
							RScRp13 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd13 = true;
						} else {
							RScUd13 = false;
							RScUp13 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd13 = true;
						} else {
							RScDd13 = false;
							RScDp13 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd13 = true;
						} else {
							bLPd13 = false;
							bLPp13 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd13 = true;
						} else {
							bRPd13 = false;
							bRPp13 = false;
						}
						return false;
					}

				});
			}
			if (i == 13) {
				controller14 = Controllers.getControllers().get(i);
				controller14.getUniqueId();
				controller14.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller14 controller to the game. Controller: " + controller);
						System.out.println("connected controller14 controller to the game. Name: " + _name);
						System.out.println("connected controller14 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller14 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd14 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd14 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd14 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd14 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld14 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d14 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd14 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd14 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd14 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd14 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd14 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d14 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d14 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d14 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d14 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd14 = false;
						if (buttonCode == 1)
							bRd14 = false;
						if (buttonCode == 3)
							bUd14 = false;
						if (buttonCode == 0)
							bDd14 = false;
						if (buttonCode == 4)
							bSeld14 = false;
						if (buttonCode == 5)
							b_5d14 = false;
						if (buttonCode == 6)
							bStd14 = false;
						if (buttonCode == 7)
							bLJBd14 = false;
						if (buttonCode == 8)
							bRJBd14 = false;
						if (buttonCode == 9)
							bLTd14 = false;
						if (buttonCode == 10)
							bRTd14 = false;
						if (buttonCode == 11)
							b_11d14 = false;
						if (buttonCode == 12)
							b_12d14 = false;
						if (buttonCode == 13)
							b_13d14 = false;
						if (buttonCode == 14)
							b_14d14 = false;
						bRp14 = false;
						bUp14 = false;
						bDp14 = false;
						bSelp14 = false;
						bStp14 = false;
						bLTp14 = false;
						bRTp14 = false;
						bLJBp14 = false;
						bRJBp14 = false;
						b_5p14 = false;
						b_11p14 = false;
						b_12p14 = false;
						b_13p14 = false;
						b_14p14 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd14 = true;
						} else {
							LScLd14 = false;
							LScLp14 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd14 = true;
						} else {
							LScRd14 = false;
							LScRp14 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd14 = true;
						} else {
							LScUd14 = false;
							LScUp14 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd14 = true;
						} else {
							LScDd14 = false;
							LScDp14 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd14 = true;
						} else {
							RScLd14 = false;
							RScLp14 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd14 = true;
						} else {
							RScRd14 = false;
							RScRp14 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd14 = true;
						} else {
							RScUd14 = false;
							RScUp14 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd14 = true;
						} else {
							RScDd14 = false;
							RScDp14 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd14 = true;
						} else {
							bLPd14 = false;
							bLPp14 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd14 = true;
						} else {
							bRPd14 = false;
							bRPp14 = false;
						}
						return false;
					}

				});
			}
			if (i == 14) {
				controller15 = Controllers.getControllers().get(i);
				controller15.getUniqueId();
				controller15.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller15 controller to the game. Controller: " + controller);
						System.out.println("connected controller15 controller to the game. Name: " + _name);
						System.out.println("connected controller15 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller15 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd15 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd15 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd15 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd15 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld15 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d15 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd15 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd15 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd15 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd15 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd15 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d15 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d15 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d15 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d15 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd15 = false;
						if (buttonCode == 1)
							bRd15 = false;
						if (buttonCode == 3)
							bUd15 = false;
						if (buttonCode == 0)
							bDd15 = false;
						if (buttonCode == 4)
							bSeld15 = false;
						if (buttonCode == 5)
							b_5d15 = false;
						if (buttonCode == 6)
							bStd15 = false;
						if (buttonCode == 7)
							bLJBd15 = false;
						if (buttonCode == 8)
							bRJBd15 = false;
						if (buttonCode == 9)
							bLTd15 = false;
						if (buttonCode == 10)
							bRTd15 = false;
						if (buttonCode == 11)
							b_11d15 = false;
						if (buttonCode == 12)
							b_12d15 = false;
						if (buttonCode == 13)
							b_13d15 = false;
						if (buttonCode == 14)
							b_14d15 = false;
						bRp15 = false;
						bUp15 = false;
						bDp15 = false;
						bSelp15 = false;
						bStp15 = false;
						bLTp15 = false;
						bRTp15 = false;
						bLJBp15 = false;
						bRJBp15 = false;
						b_5p15 = false;
						b_11p15 = false;
						b_12p15 = false;
						b_13p15 = false;
						b_14p15 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd15 = true;
						} else {
							LScLd15 = false;
							LScLp15 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd15 = true;
						} else {
							LScRd15 = false;
							LScRp15 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd15 = true;
						} else {
							LScUd15 = false;
							LScUp15 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd15 = true;
						} else {
							LScDd15 = false;
							LScDp15 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd15 = true;
						} else {
							RScLd15 = false;
							RScLp15 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd15 = true;
						} else {
							RScRd15 = false;
							RScRp15 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd15 = true;
						} else {
							RScUd15 = false;
							RScUp15 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd15 = true;
						} else {
							RScDd15 = false;
							RScDp15 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd15 = true;
						} else {
							bLPd15 = false;
							bLPp15 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd15 = true;
						} else {
							bRPd15 = false;
							bRPp15 = false;
						}
						return false;
					}

				});
			}
			if (i == 15) {
				controller16 = Controllers.getControllers().get(i);
				controller16.getUniqueId();
				controller16.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller16 controller to the game. Controller: " + controller);
						System.out.println("connected controller16 controller to the game. Name: " + _name);
						System.out.println("connected controller16 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller16 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd16 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd16 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd16 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd16 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld16 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d16 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd16 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd16 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd16 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd16 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd16 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d16 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d16 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d16 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d16 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd16 = false;
						if (buttonCode == 1)
							bRd16 = false;
						if (buttonCode == 3)
							bUd16 = false;
						if (buttonCode == 0)
							bDd16 = false;
						if (buttonCode == 4)
							bSeld16 = false;
						if (buttonCode == 5)
							b_5d16 = false;
						if (buttonCode == 6)
							bStd16 = false;
						if (buttonCode == 7)
							bLJBd16 = false;
						if (buttonCode == 8)
							bRJBd16 = false;
						if (buttonCode == 9)
							bLTd16 = false;
						if (buttonCode == 10)
							bRTd16 = false;
						if (buttonCode == 11)
							b_11d16 = false;
						if (buttonCode == 12)
							b_12d16 = false;
						if (buttonCode == 13)
							b_13d16 = false;
						if (buttonCode == 14)
							b_14d16 = false;
						bRp16 = false;
						bUp16 = false;
						bDp16 = false;
						bSelp16 = false;
						bStp16 = false;
						bLTp16 = false;
						bRTp16 = false;
						bLJBp16 = false;
						bRJBp16 = false;
						b_5p16 = false;
						b_11p16 = false;
						b_12p16 = false;
						b_13p16 = false;
						b_14p16 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd16 = true;
						} else {
							LScLd16 = false;
							LScLp16 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd16 = true;
						} else {
							LScRd16 = false;
							LScRp16 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd16 = true;
						} else {
							LScUd16 = false;
							LScUp16 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd16 = true;
						} else {
							LScDd16 = false;
							LScDp16 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd16 = true;
						} else {
							RScLd16 = false;
							RScLp16 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd16 = true;
						} else {
							RScRd16 = false;
							RScRp16 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd16 = true;
						} else {
							RScUd16 = false;
							RScUp16 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd16 = true;
						} else {
							RScDd16 = false;
							RScDp16 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd16 = true;
						} else {
							bLPd16 = false;
							bLPp16 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd16 = true;
						} else {
							bRPd16 = false;
							bRPp16 = false;
						}
						return false;
					}

				});
			}
			if (i == 16) {
				controller17 = Controllers.getControllers().get(i);
				controller17.getUniqueId();
				controller17.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller17 controller to the game. Controller: " + controller);
						System.out.println("connected controller17 controller to the game. Name: " + _name);
						System.out.println("connected controller17 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller17 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd17 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd17 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd17 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd17 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld17 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d17 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd17 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd17 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd17 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd17 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd17 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d17 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d17 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d17 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d17 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd17 = false;
						if (buttonCode == 1)
							bRd17 = false;
						if (buttonCode == 3)
							bUd17 = false;
						if (buttonCode == 0)
							bDd17 = false;
						if (buttonCode == 4)
							bSeld17 = false;
						if (buttonCode == 5)
							b_5d17 = false;
						if (buttonCode == 6)
							bStd17 = false;
						if (buttonCode == 7)
							bLJBd17 = false;
						if (buttonCode == 8)
							bRJBd17 = false;
						if (buttonCode == 9)
							bLTd17 = false;
						if (buttonCode == 10)
							bRTd17 = false;
						if (buttonCode == 11)
							b_11d17 = false;
						if (buttonCode == 12)
							b_12d17 = false;
						if (buttonCode == 13)
							b_13d17 = false;
						if (buttonCode == 14)
							b_14d17 = false;
						bRp17 = false;
						bUp17 = false;
						bDp17 = false;
						bSelp17 = false;
						bStp17 = false;
						bLTp17 = false;
						bRTp17 = false;
						bLJBp17 = false;
						bRJBp17 = false;
						b_5p17 = false;
						b_11p17 = false;
						b_12p17 = false;
						b_13p17 = false;
						b_14p17 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd17 = true;
						} else {
							LScLd17 = false;
							LScLp17 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd17 = true;
						} else {
							LScRd17 = false;
							LScRp17 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd17 = true;
						} else {
							LScUd17 = false;
							LScUp17 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd17 = true;
						} else {
							LScDd17 = false;
							LScDp17 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd17 = true;
						} else {
							RScLd17 = false;
							RScLp17 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd17 = true;
						} else {
							RScRd17 = false;
							RScRp17 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd17 = true;
						} else {
							RScUd17 = false;
							RScUp17 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd17 = true;
						} else {
							RScDd17 = false;
							RScDp17 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd17 = true;
						} else {
							bLPd17 = false;
							bLPp17 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd17 = true;
						} else {
							bRPd17 = false;
							bRPp17 = false;
						}
						return false;
					}

				});
			}
			if (i == 17) {
				controller18 = Controllers.getControllers().get(i);
				controller18.getUniqueId();
				controller18.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller18 controller to the game. Controller: " + controller);
						System.out.println("connected controller18 controller to the game. Name: " + _name);
						System.out.println("connected controller18 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller18 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd18 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd18 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd18 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd18 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld18 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d18 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd18 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd18 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd18 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd18 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd18 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d18 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d18 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d18 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d18 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd18 = false;
						if (buttonCode == 1)
							bRd18 = false;
						if (buttonCode == 3)
							bUd18 = false;
						if (buttonCode == 0)
							bDd18 = false;
						if (buttonCode == 4)
							bSeld18 = false;
						if (buttonCode == 5)
							b_5d18 = false;
						if (buttonCode == 6)
							bStd18 = false;
						if (buttonCode == 7)
							bLJBd18 = false;
						if (buttonCode == 8)
							bRJBd18 = false;
						if (buttonCode == 9)
							bLTd18 = false;
						if (buttonCode == 10)
							bRTd18 = false;
						if (buttonCode == 11)
							b_11d18 = false;
						if (buttonCode == 12)
							b_12d18 = false;
						if (buttonCode == 13)
							b_13d18 = false;
						if (buttonCode == 14)
							b_14d18 = false;
						bRp18 = false;
						bUp18 = false;
						bDp18 = false;
						bSelp18 = false;
						bStp18 = false;
						bLTp18 = false;
						bRTp18 = false;
						bLJBp18 = false;
						bRJBp18 = false;
						b_5p18 = false;
						b_11p18 = false;
						b_12p18 = false;
						b_13p18 = false;
						b_14p18 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd18 = true;
						} else {
							LScLd18 = false;
							LScLp18 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd18 = true;
						} else {
							LScRd18 = false;
							LScRp18 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd18 = true;
						} else {
							LScUd18 = false;
							LScUp18 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd18 = true;
						} else {
							LScDd18 = false;
							LScDp18 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd18 = true;
						} else {
							RScLd18 = false;
							RScLp18 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd18 = true;
						} else {
							RScRd18 = false;
							RScRp18 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd18 = true;
						} else {
							RScUd18 = false;
							RScUp18 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd18 = true;
						} else {
							RScDd18 = false;
							RScDp18 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd18 = true;
						} else {
							bLPd18 = false;
							bLPp18 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd18 = true;
						} else {
							bRPd18 = false;
							bRPp18 = false;
						}
						return false;
					}

				});
			}
			if (i == 18) {
				controller19 = Controllers.getControllers().get(i);
				controller19.getUniqueId();
				controller19.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller19 controller to the game. Controller: " + controller);
						System.out.println("connected controller19 controller to the game. Name: " + _name);
						System.out.println("connected controller19 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller19 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd19 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd19 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd19 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd19 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld19 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d19 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd19 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd19 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd19 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd19 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd19 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d19 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d19 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d19 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d19 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd19 = false;
						if (buttonCode == 1)
							bRd19 = false;
						if (buttonCode == 3)
							bUd19 = false;
						if (buttonCode == 0)
							bDd19 = false;
						if (buttonCode == 4)
							bSeld19 = false;
						if (buttonCode == 5)
							b_5d19 = false;
						if (buttonCode == 6)
							bStd19 = false;
						if (buttonCode == 7)
							bLJBd19 = false;
						if (buttonCode == 8)
							bRJBd19 = false;
						if (buttonCode == 9)
							bLTd19 = false;
						if (buttonCode == 10)
							bRTd19 = false;
						if (buttonCode == 11)
							b_11d19 = false;
						if (buttonCode == 12)
							b_12d19 = false;
						if (buttonCode == 13)
							b_13d19 = false;
						if (buttonCode == 14)
							b_14d19 = false;
						bRp19 = false;
						bUp19 = false;
						bDp19 = false;
						bSelp19 = false;
						bStp19 = false;
						bLTp19 = false;
						bRTp19 = false;
						bLJBp19 = false;
						bRJBp19 = false;
						b_5p19 = false;
						b_11p19 = false;
						b_12p19 = false;
						b_13p19 = false;
						b_14p19 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd19 = true;
						} else {
							LScLd19 = false;
							LScLp19 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd19 = true;
						} else {
							LScRd19 = false;
							LScRp19 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd19 = true;
						} else {
							LScUd19 = false;
							LScUp19 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd19 = true;
						} else {
							LScDd19 = false;
							LScDp19 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd19 = true;
						} else {
							RScLd19 = false;
							RScLp19 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd19 = true;
						} else {
							RScRd19 = false;
							RScRp19 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd19 = true;
						} else {
							RScUd19 = false;
							RScUp19 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd19 = true;
						} else {
							RScDd19 = false;
							RScDp19 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd19 = true;
						} else {
							bLPd19 = false;
							bLPp19 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd19 = true;
						} else {
							bRPd19 = false;
							bRPp19 = false;
						}
						return false;
					}

				});
			}
			if (i == 19) {
				controller20 = Controllers.getControllers().get(i);
				controller20.getUniqueId();
				controller20.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller20 controller to the game. Controller: " + controller);
						System.out.println("connected controller20 controller to the game. Name: " + _name);
						System.out.println("connected controller20 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller20 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd20 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd20 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd20 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd20 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld20 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d20 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd20 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd20 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd20 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd20 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd20 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d20 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d20 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d20 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d20 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd20 = false;
						if (buttonCode == 1)
							bRd20 = false;
						if (buttonCode == 3)
							bUd20 = false;
						if (buttonCode == 0)
							bDd20 = false;
						if (buttonCode == 4)
							bSeld20 = false;
						if (buttonCode == 5)
							b_5d20 = false;
						if (buttonCode == 6)
							bStd20 = false;
						if (buttonCode == 7)
							bLJBd20 = false;
						if (buttonCode == 8)
							bRJBd20 = false;
						if (buttonCode == 9)
							bLTd20 = false;
						if (buttonCode == 10)
							bRTd20 = false;
						if (buttonCode == 11)
							b_11d20 = false;
						if (buttonCode == 12)
							b_12d20 = false;
						if (buttonCode == 13)
							b_13d20 = false;
						if (buttonCode == 14)
							b_14d20 = false;
						bRp20 = false;
						bUp20 = false;
						bDp20 = false;
						bSelp20 = false;
						bStp20 = false;
						bLTp20 = false;
						bRTp20 = false;
						bLJBp20 = false;
						bRJBp20 = false;
						b_5p20 = false;
						b_11p20 = false;
						b_12p20 = false;
						b_13p20 = false;
						b_14p20 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd20 = true;
						} else {
							LScLd20 = false;
							LScLp20 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd20 = true;
						} else {
							LScRd20 = false;
							LScRp20 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd20 = true;
						} else {
							LScUd20 = false;
							LScUp20 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd20 = true;
						} else {
							LScDd20 = false;
							LScDp20 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd20 = true;
						} else {
							RScLd20 = false;
							RScLp20 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd20 = true;
						} else {
							RScRd20 = false;
							RScRp20 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd20 = true;
						} else {
							RScUd20 = false;
							RScUp20 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd20 = true;
						} else {
							RScDd20 = false;
							RScDp20 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd20 = true;
						} else {
							bLPd20 = false;
							bLPp20 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd20 = true;
						} else {
							bRPd20 = false;
							bRPp20 = false;
						}
						return false;
					}

				});
			}
			if (i == 20) {
				controller21 = Controllers.getControllers().get(i);
				controller21.getUniqueId();
				controller21.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller21 controller to the game. Controller: " + controller);
						System.out.println("connected controller21 controller to the game. Name: " + _name);
						System.out.println("connected controller21 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller21 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd21 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd21 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd21 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd21 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld21 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d21 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd21 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd21 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd21 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd21 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd21 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d21 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d21 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d21 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d21 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd21 = false;
						if (buttonCode == 1)
							bRd21 = false;
						if (buttonCode == 3)
							bUd21 = false;
						if (buttonCode == 0)
							bDd21 = false;
						if (buttonCode == 4)
							bSeld21 = false;
						if (buttonCode == 5)
							b_5d21 = false;
						if (buttonCode == 6)
							bStd21 = false;
						if (buttonCode == 7)
							bLJBd21 = false;
						if (buttonCode == 8)
							bRJBd21 = false;
						if (buttonCode == 9)
							bLTd21 = false;
						if (buttonCode == 10)
							bRTd21 = false;
						if (buttonCode == 11)
							b_11d21 = false;
						if (buttonCode == 12)
							b_12d21 = false;
						if (buttonCode == 13)
							b_13d21 = false;
						if (buttonCode == 14)
							b_14d21 = false;
						bRp21 = false;
						bUp21 = false;
						bDp21 = false;
						bSelp21 = false;
						bStp21 = false;
						bLTp21 = false;
						bRTp21 = false;
						bLJBp21 = false;
						bRJBp21 = false;
						b_5p21 = false;
						b_11p21 = false;
						b_12p21 = false;
						b_13p21 = false;
						b_14p21 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd21 = true;
						} else {
							LScLd21 = false;
							LScLp21 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd21 = true;
						} else {
							LScRd21 = false;
							LScRp21 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd21 = true;
						} else {
							LScUd21 = false;
							LScUp21 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd21 = true;
						} else {
							LScDd21 = false;
							LScDp21 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd21 = true;
						} else {
							RScLd21 = false;
							RScLp21 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd21 = true;
						} else {
							RScRd21 = false;
							RScRp21 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd21 = true;
						} else {
							RScUd21 = false;
							RScUp21 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd21 = true;
						} else {
							RScDd21 = false;
							RScDp21 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd21 = true;
						} else {
							bLPd21 = false;
							bLPp21 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd21 = true;
						} else {
							bRPd21 = false;
							bRPp21 = false;
						}
						return false;
					}

				});
			}
			if (i == 21) {
				controller22 = Controllers.getControllers().get(i);
				controller22.getUniqueId();
				controller22.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller22 controller to the game. Controller: " + controller);
						System.out.println("connected controller22 controller to the game. Name: " + _name);
						System.out.println("connected controller22 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller22 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd22 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd22 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd22 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd22 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld22 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d22 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd22 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd22 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd22 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd22 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd22 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d22 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d22 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d22 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d22 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd22 = false;
						if (buttonCode == 1)
							bRd22 = false;
						if (buttonCode == 3)
							bUd22 = false;
						if (buttonCode == 0)
							bDd22 = false;
						if (buttonCode == 4)
							bSeld22 = false;
						if (buttonCode == 5)
							b_5d22 = false;
						if (buttonCode == 6)
							bStd22 = false;
						if (buttonCode == 7)
							bLJBd22 = false;
						if (buttonCode == 8)
							bRJBd22 = false;
						if (buttonCode == 9)
							bLTd22 = false;
						if (buttonCode == 10)
							bRTd22 = false;
						if (buttonCode == 11)
							b_11d22 = false;
						if (buttonCode == 12)
							b_12d22 = false;
						if (buttonCode == 13)
							b_13d22 = false;
						if (buttonCode == 14)
							b_14d22 = false;
						bRp22 = false;
						bUp22 = false;
						bDp22 = false;
						bSelp22 = false;
						bStp22 = false;
						bLTp22 = false;
						bRTp22 = false;
						bLJBp22 = false;
						bRJBp22 = false;
						b_5p22 = false;
						b_11p22 = false;
						b_12p22 = false;
						b_13p22 = false;
						b_14p22 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd22 = true;
						} else {
							LScLd22 = false;
							LScLp22 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd22 = true;
						} else {
							LScRd22 = false;
							LScRp22 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd22 = true;
						} else {
							LScUd22 = false;
							LScUp22 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd22 = true;
						} else {
							LScDd22 = false;
							LScDp22 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd22 = true;
						} else {
							RScLd22 = false;
							RScLp22 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd22 = true;
						} else {
							RScRd22 = false;
							RScRp22 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd22 = true;
						} else {
							RScUd22 = false;
							RScUp22 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd22 = true;
						} else {
							RScDd22 = false;
							RScDp22 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd22 = true;
						} else {
							bLPd22 = false;
							bLPp22 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd22 = true;
						} else {
							bRPd22 = false;
							bRPp22 = false;
						}
						return false;
					}

				});
			}
			if (i == 22) {
				controller23 = Controllers.getControllers().get(i);
				controller23.getUniqueId();
				controller23.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller23 controller to the game. Controller: " + controller);
						System.out.println("connected controller23 controller to the game. Name: " + _name);
						System.out.println("connected controller23 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller23 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd23 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd23 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd23 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd23 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld23 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d23 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd23 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd23 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd23 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd23 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd23 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d23 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d23 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d23 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d23 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd23 = false;
						if (buttonCode == 1)
							bRd23 = false;
						if (buttonCode == 3)
							bUd23 = false;
						if (buttonCode == 0)
							bDd23 = false;
						if (buttonCode == 4)
							bSeld23 = false;
						if (buttonCode == 5)
							b_5d23 = false;
						if (buttonCode == 6)
							bStd23 = false;
						if (buttonCode == 7)
							bLJBd23 = false;
						if (buttonCode == 8)
							bRJBd23 = false;
						if (buttonCode == 9)
							bLTd23 = false;
						if (buttonCode == 10)
							bRTd23 = false;
						if (buttonCode == 11)
							b_11d23 = false;
						if (buttonCode == 12)
							b_12d23 = false;
						if (buttonCode == 13)
							b_13d23 = false;
						if (buttonCode == 14)
							b_14d23 = false;
						bRp23 = false;
						bUp23 = false;
						bDp23 = false;
						bSelp23 = false;
						bStp23 = false;
						bLTp23 = false;
						bRTp23 = false;
						bLJBp23 = false;
						bRJBp23 = false;
						b_5p23 = false;
						b_11p23 = false;
						b_12p23 = false;
						b_13p23 = false;
						b_14p23 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd23 = true;
						} else {
							LScLd23 = false;
							LScLp23 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd23 = true;
						} else {
							LScRd23 = false;
							LScRp23 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd23 = true;
						} else {
							LScUd23 = false;
							LScUp23 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd23 = true;
						} else {
							LScDd23 = false;
							LScDp23 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd23 = true;
						} else {
							RScLd23 = false;
							RScLp23 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd23 = true;
						} else {
							RScRd23 = false;
							RScRp23 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd23 = true;
						} else {
							RScUd23 = false;
							RScUp23 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd23 = true;
						} else {
							RScDd23 = false;
							RScDp23 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd23 = true;
						} else {
							bLPd23 = false;
							bLPp23 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd23 = true;
						} else {
							bRPd23 = false;
							bRPp23 = false;
						}
						return false;
					}

				});
			}
			if (i == 23) {
				controller24 = Controllers.getControllers().get(i);
				controller24.getUniqueId();
				controller24.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller24 controller to the game. Controller: " + controller);
						System.out.println("connected controller24 controller to the game. Name: " + _name);
						System.out.println("connected controller24 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller24 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd24 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd24 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd24 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd24 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld24 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d24 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd24 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd24 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd24 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd24 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd24 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d24 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d24 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d24 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d24 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd24 = false;
						if (buttonCode == 1)
							bRd24 = false;
						if (buttonCode == 3)
							bUd24 = false;
						if (buttonCode == 0)
							bDd24 = false;
						if (buttonCode == 4)
							bSeld24 = false;
						if (buttonCode == 5)
							b_5d24 = false;
						if (buttonCode == 6)
							bStd24 = false;
						if (buttonCode == 7)
							bLJBd24 = false;
						if (buttonCode == 8)
							bRJBd24 = false;
						if (buttonCode == 9)
							bLTd24 = false;
						if (buttonCode == 10)
							bRTd24 = false;
						if (buttonCode == 11)
							b_11d24 = false;
						if (buttonCode == 12)
							b_12d24 = false;
						if (buttonCode == 13)
							b_13d24 = false;
						if (buttonCode == 14)
							b_14d24 = false;
						bRp24 = false;
						bUp24 = false;
						bDp24 = false;
						bSelp24 = false;
						bStp24 = false;
						bLTp24 = false;
						bRTp24 = false;
						bLJBp24 = false;
						bRJBp24 = false;
						b_5p24 = false;
						b_11p24 = false;
						b_12p24 = false;
						b_13p24 = false;
						b_14p24 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd24 = true;
						} else {
							LScLd24 = false;
							LScLp24 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd24 = true;
						} else {
							LScRd24 = false;
							LScRp24 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd24 = true;
						} else {
							LScUd24 = false;
							LScUp24 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd24 = true;
						} else {
							LScDd24 = false;
							LScDp24 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd24 = true;
						} else {
							RScLd24 = false;
							RScLp24 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd24 = true;
						} else {
							RScRd24 = false;
							RScRp24 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd24 = true;
						} else {
							RScUd24 = false;
							RScUp24 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd24 = true;
						} else {
							RScDd24 = false;
							RScDp24 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd24 = true;
						} else {
							bLPd24 = false;
							bLPp24 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd24 = true;
						} else {
							bRPd24 = false;
							bRPp24 = false;
						}
						return false;
					}

				});
			}
			if (i == 24) {
				controller25 = Controllers.getControllers().get(i);
				controller25.getUniqueId();
				controller25.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller25 controller to the game. Controller: " + controller);
						System.out.println("connected controller25 controller to the game. Name: " + _name);
						System.out.println("connected controller25 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller25 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd25 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd25 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd25 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd25 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld25 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d25 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd25 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd25 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd25 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd25 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd25 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d25 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d25 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d25 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d25 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd25 = false;
						if (buttonCode == 1)
							bRd25 = false;
						if (buttonCode == 3)
							bUd25 = false;
						if (buttonCode == 0)
							bDd25 = false;
						if (buttonCode == 4)
							bSeld25 = false;
						if (buttonCode == 5)
							b_5d25 = false;
						if (buttonCode == 6)
							bStd25 = false;
						if (buttonCode == 7)
							bLJBd25 = false;
						if (buttonCode == 8)
							bRJBd25 = false;
						if (buttonCode == 9)
							bLTd25 = false;
						if (buttonCode == 10)
							bRTd25 = false;
						if (buttonCode == 11)
							b_11d25 = false;
						if (buttonCode == 12)
							b_12d25 = false;
						if (buttonCode == 13)
							b_13d25 = false;
						if (buttonCode == 14)
							b_14d25 = false;
						bRp25 = false;
						bUp25 = false;
						bDp25 = false;
						bSelp25 = false;
						bStp25 = false;
						bLTp25 = false;
						bRTp25 = false;
						bLJBp25 = false;
						bRJBp25 = false;
						b_5p25 = false;
						b_11p25 = false;
						b_12p25 = false;
						b_13p25 = false;
						b_14p25 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd25 = true;
						} else {
							LScLd25 = false;
							LScLp25 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd25 = true;
						} else {
							LScRd25 = false;
							LScRp25 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd25 = true;
						} else {
							LScUd25 = false;
							LScUp25 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd25 = true;
						} else {
							LScDd25 = false;
							LScDp25 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd25 = true;
						} else {
							RScLd25 = false;
							RScLp25 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd25 = true;
						} else {
							RScRd25 = false;
							RScRp25 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd25 = true;
						} else {
							RScUd25 = false;
							RScUp25 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd25 = true;
						} else {
							RScDd25 = false;
							RScDp25 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd25 = true;
						} else {
							bLPd25 = false;
							bLPp25 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd25 = true;
						} else {
							bRPd25 = false;
							bRPp25 = false;
						}
						return false;
					}

				});
			}
			if (i == 25) {
				controller26 = Controllers.getControllers().get(i);
				controller26.getUniqueId();
				controller26.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller26 controller to the game. Controller: " + controller);
						System.out.println("connected controller26 controller to the game. Name: " + _name);
						System.out.println("connected controller26 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller26 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd26 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd26 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd26 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd26 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld26 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d26 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd26 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd26 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd26 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd26 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd26 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d26 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d26 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d26 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d26 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd26 = false;
						if (buttonCode == 1)
							bRd26 = false;
						if (buttonCode == 3)
							bUd26 = false;
						if (buttonCode == 0)
							bDd26 = false;
						if (buttonCode == 4)
							bSeld26 = false;
						if (buttonCode == 5)
							b_5d26 = false;
						if (buttonCode == 6)
							bStd26 = false;
						if (buttonCode == 7)
							bLJBd26 = false;
						if (buttonCode == 8)
							bRJBd26 = false;
						if (buttonCode == 9)
							bLTd26 = false;
						if (buttonCode == 10)
							bRTd26 = false;
						if (buttonCode == 11)
							b_11d26 = false;
						if (buttonCode == 12)
							b_12d26 = false;
						if (buttonCode == 13)
							b_13d26 = false;
						if (buttonCode == 14)
							b_14d26 = false;
						bRp26 = false;
						bUp26 = false;
						bDp26 = false;
						bSelp26 = false;
						bStp26 = false;
						bLTp26 = false;
						bRTp26 = false;
						bLJBp26 = false;
						bRJBp26 = false;
						b_5p26 = false;
						b_11p26 = false;
						b_12p26 = false;
						b_13p26 = false;
						b_14p26 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd26 = true;
						} else {
							LScLd26 = false;
							LScLp26 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd26 = true;
						} else {
							LScRd26 = false;
							LScRp26 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd26 = true;
						} else {
							LScUd26 = false;
							LScUp26 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd26 = true;
						} else {
							LScDd26 = false;
							LScDp26 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd26 = true;
						} else {
							RScLd26 = false;
							RScLp26 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd26 = true;
						} else {
							RScRd26 = false;
							RScRp26 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd26 = true;
						} else {
							RScUd26 = false;
							RScUp26 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd26 = true;
						} else {
							RScDd26 = false;
							RScDp26 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd26 = true;
						} else {
							bLPd26 = false;
							bLPp26 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd26 = true;
						} else {
							bRPd26 = false;
							bRPp26 = false;
						}
						return false;
					}

				});
			}
			if (i == 26) {
				controller27 = Controllers.getControllers().get(i);
				controller27.getUniqueId();
				controller27.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller27 controller to the game. Controller: " + controller);
						System.out.println("connected controller27 controller to the game. Name: " + _name);
						System.out.println("connected controller27 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller27 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd27 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd27 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd27 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd27 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld27 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d27 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd27 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd27 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd27 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd27 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd27 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d27 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d27 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d27 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d27 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd27 = false;
						if (buttonCode == 1)
							bRd27 = false;
						if (buttonCode == 3)
							bUd27 = false;
						if (buttonCode == 0)
							bDd27 = false;
						if (buttonCode == 4)
							bSeld27 = false;
						if (buttonCode == 5)
							b_5d27 = false;
						if (buttonCode == 6)
							bStd27 = false;
						if (buttonCode == 7)
							bLJBd27 = false;
						if (buttonCode == 8)
							bRJBd27 = false;
						if (buttonCode == 9)
							bLTd27 = false;
						if (buttonCode == 10)
							bRTd27 = false;
						if (buttonCode == 11)
							b_11d27 = false;
						if (buttonCode == 12)
							b_12d27 = false;
						if (buttonCode == 13)
							b_13d27 = false;
						if (buttonCode == 14)
							b_14d27 = false;
						bRp27 = false;
						bUp27 = false;
						bDp27 = false;
						bSelp27 = false;
						bStp27 = false;
						bLTp27 = false;
						bRTp27 = false;
						bLJBp27 = false;
						bRJBp27 = false;
						b_5p27 = false;
						b_11p27 = false;
						b_12p27 = false;
						b_13p27 = false;
						b_14p27 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd27 = true;
						} else {
							LScLd27 = false;
							LScLp27 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd27 = true;
						} else {
							LScRd27 = false;
							LScRp27 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd27 = true;
						} else {
							LScUd27 = false;
							LScUp27 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd27 = true;
						} else {
							LScDd27 = false;
							LScDp27 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd27 = true;
						} else {
							RScLd27 = false;
							RScLp27 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd27 = true;
						} else {
							RScRd27 = false;
							RScRp27 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd27 = true;
						} else {
							RScUd27 = false;
							RScUp27 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd27 = true;
						} else {
							RScDd27 = false;
							RScDp27 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd27 = true;
						} else {
							bLPd27 = false;
							bLPp27 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd27 = true;
						} else {
							bRPd27 = false;
							bRPp27 = false;
						}
						return false;
					}

				});
			}
			if (i == 27) {
				controller28 = Controllers.getControllers().get(i);
				controller28.getUniqueId();
				controller28.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller28 controller to the game. Controller: " + controller);
						System.out.println("connected controller28 controller to the game. Name: " + _name);
						System.out.println("connected controller28 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller28 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd28 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd28 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd28 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd28 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld28 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d28 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd28 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd28 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd28 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd28 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd28 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d28 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d28 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d28 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d28 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd28 = false;
						if (buttonCode == 1)
							bRd28 = false;
						if (buttonCode == 3)
							bUd28 = false;
						if (buttonCode == 0)
							bDd28 = false;
						if (buttonCode == 4)
							bSeld28 = false;
						if (buttonCode == 5)
							b_5d28 = false;
						if (buttonCode == 6)
							bStd28 = false;
						if (buttonCode == 7)
							bLJBd28 = false;
						if (buttonCode == 8)
							bRJBd28 = false;
						if (buttonCode == 9)
							bLTd28 = false;
						if (buttonCode == 10)
							bRTd28 = false;
						if (buttonCode == 11)
							b_11d28 = false;
						if (buttonCode == 12)
							b_12d28 = false;
						if (buttonCode == 13)
							b_13d28 = false;
						if (buttonCode == 14)
							b_14d28 = false;
						bRp28 = false;
						bUp28 = false;
						bDp28 = false;
						bSelp28 = false;
						bStp28 = false;
						bLTp28 = false;
						bRTp28 = false;
						bLJBp28 = false;
						bRJBp28 = false;
						b_5p28 = false;
						b_11p28 = false;
						b_12p28 = false;
						b_13p28 = false;
						b_14p28 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd28 = true;
						} else {
							LScLd28 = false;
							LScLp28 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd28 = true;
						} else {
							LScRd28 = false;
							LScRp28 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd28 = true;
						} else {
							LScUd28 = false;
							LScUp28 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd28 = true;
						} else {
							LScDd28 = false;
							LScDp28 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd28 = true;
						} else {
							RScLd28 = false;
							RScLp28 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd28 = true;
						} else {
							RScRd28 = false;
							RScRp28 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd28 = true;
						} else {
							RScUd28 = false;
							RScUp28 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd28 = true;
						} else {
							RScDd28 = false;
							RScDp28 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd28 = true;
						} else {
							bLPd28 = false;
							bLPp28 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd28 = true;
						} else {
							bRPd28 = false;
							bRPp28 = false;
						}
						return false;
					}

				});
			}
			if (i == 28) {
				controller29 = Controllers.getControllers().get(i);
				controller29.getUniqueId();
				controller29.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller29 controller to the game. Controller: " + controller);
						System.out.println("connected controller29 controller to the game. Name: " + _name);
						System.out.println("connected controller29 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller29 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd29 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd29 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd29 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd29 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld29 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d29 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd29 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd29 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd29 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd29 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd29 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d29 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d29 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d29 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d29 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd29 = false;
						if (buttonCode == 1)
							bRd29 = false;
						if (buttonCode == 3)
							bUd29 = false;
						if (buttonCode == 0)
							bDd29 = false;
						if (buttonCode == 4)
							bSeld29 = false;
						if (buttonCode == 5)
							b_5d29 = false;
						if (buttonCode == 6)
							bStd29 = false;
						if (buttonCode == 7)
							bLJBd29 = false;
						if (buttonCode == 8)
							bRJBd29 = false;
						if (buttonCode == 9)
							bLTd29 = false;
						if (buttonCode == 10)
							bRTd29 = false;
						if (buttonCode == 11)
							b_11d29 = false;
						if (buttonCode == 12)
							b_12d29 = false;
						if (buttonCode == 13)
							b_13d29 = false;
						if (buttonCode == 14)
							b_14d29 = false;
						bRp29 = false;
						bUp29 = false;
						bDp29 = false;
						bSelp29 = false;
						bStp29 = false;
						bLTp29 = false;
						bRTp29 = false;
						bLJBp29 = false;
						bRJBp29 = false;
						b_5p29 = false;
						b_11p29 = false;
						b_12p29 = false;
						b_13p29 = false;
						b_14p29 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd29 = true;
						} else {
							LScLd29 = false;
							LScLp29 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd29 = true;
						} else {
							LScRd29 = false;
							LScRp29 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd29 = true;
						} else {
							LScUd29 = false;
							LScUp29 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd29 = true;
						} else {
							LScDd29 = false;
							LScDp29 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd29 = true;
						} else {
							RScLd29 = false;
							RScLp29 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd29 = true;
						} else {
							RScRd29 = false;
							RScRp29 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd29 = true;
						} else {
							RScUd29 = false;
							RScUp29 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd29 = true;
						} else {
							RScDd29 = false;
							RScDp29 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd29 = true;
						} else {
							bLPd29 = false;
							bLPp29 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd29 = true;
						} else {
							bRPd29 = false;
							bRPp29 = false;
						}
						return false;
					}

				});
			}
			if (i == 29) {
				controller30 = Controllers.getControllers().get(i);
				controller30.getUniqueId();
				controller30.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller30 controller to the game. Controller: " + controller);
						System.out.println("connected controller30 controller to the game. Name: " + _name);
						System.out.println("connected controller30 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller30 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd30 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd30 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd30 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd30 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld30 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d30 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd30 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd30 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd30 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd30 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd30 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d30 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d30 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d30 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d30 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd30 = false;
						if (buttonCode == 1)
							bRd30 = false;
						if (buttonCode == 3)
							bUd30 = false;
						if (buttonCode == 0)
							bDd30 = false;
						if (buttonCode == 4)
							bSeld30 = false;
						if (buttonCode == 5)
							b_5d30 = false;
						if (buttonCode == 6)
							bStd30 = false;
						if (buttonCode == 7)
							bLJBd30 = false;
						if (buttonCode == 8)
							bRJBd30 = false;
						if (buttonCode == 9)
							bLTd30 = false;
						if (buttonCode == 10)
							bRTd30 = false;
						if (buttonCode == 11)
							b_11d30 = false;
						if (buttonCode == 12)
							b_12d30 = false;
						if (buttonCode == 13)
							b_13d30 = false;
						if (buttonCode == 14)
							b_14d30 = false;
						bRp30 = false;
						bUp30 = false;
						bDp30 = false;
						bSelp30 = false;
						bStp30 = false;
						bLTp30 = false;
						bRTp30 = false;
						bLJBp30 = false;
						bRJBp30 = false;
						b_5p30 = false;
						b_11p30 = false;
						b_12p30 = false;
						b_13p30 = false;
						b_14p30 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd30 = true;
						} else {
							LScLd30 = false;
							LScLp30 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd30 = true;
						} else {
							LScRd30 = false;
							LScRp30 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd30 = true;
						} else {
							LScUd30 = false;
							LScUp30 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd30 = true;
						} else {
							LScDd30 = false;
							LScDp30 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd30 = true;
						} else {
							RScLd30 = false;
							RScLp30 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd30 = true;
						} else {
							RScRd30 = false;
							RScRp30 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd30 = true;
						} else {
							RScUd30 = false;
							RScUp30 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd30 = true;
						} else {
							RScDd30 = false;
							RScDp30 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd30 = true;
						} else {
							bLPd30 = false;
							bLPp30 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd30 = true;
						} else {
							bRPd30 = false;
							bRPp30 = false;
						}
						return false;
					}

				});
			}
			if (i == 30) {
				controller31 = Controllers.getControllers().get(i);
				controller31.getUniqueId();
				controller31.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller31 controller to the game. Controller: " + controller);
						System.out.println("connected controller31 controller to the game. Name: " + _name);
						System.out.println("connected controller31 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller31 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd31 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd31 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd31 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd31 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld31 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d31 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd31 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd31 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd31 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd31 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd31 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d31 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d31 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d31 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d31 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd31 = false;
						if (buttonCode == 1)
							bRd31 = false;
						if (buttonCode == 3)
							bUd31 = false;
						if (buttonCode == 0)
							bDd31 = false;
						if (buttonCode == 4)
							bSeld31 = false;
						if (buttonCode == 5)
							b_5d31 = false;
						if (buttonCode == 6)
							bStd31 = false;
						if (buttonCode == 7)
							bLJBd31 = false;
						if (buttonCode == 8)
							bRJBd31 = false;
						if (buttonCode == 9)
							bLTd31 = false;
						if (buttonCode == 10)
							bRTd31 = false;
						if (buttonCode == 11)
							b_11d31 = false;
						if (buttonCode == 12)
							b_12d31 = false;
						if (buttonCode == 13)
							b_13d31 = false;
						if (buttonCode == 14)
							b_14d31 = false;
						bRp31 = false;
						bUp31 = false;
						bDp31 = false;
						bSelp31 = false;
						bStp31 = false;
						bLTp31 = false;
						bRTp31 = false;
						bLJBp31 = false;
						bRJBp31 = false;
						b_5p31 = false;
						b_11p31 = false;
						b_12p31 = false;
						b_13p31 = false;
						b_14p31 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd31 = true;
						} else {
							LScLd31 = false;
							LScLp31 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd31 = true;
						} else {
							LScRd31 = false;
							LScRp31 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd31 = true;
						} else {
							LScUd31 = false;
							LScUp31 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd31 = true;
						} else {
							LScDd31 = false;
							LScDp31 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd31 = true;
						} else {
							RScLd31 = false;
							RScLp31 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd31 = true;
						} else {
							RScRd31 = false;
							RScRp31 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd31 = true;
						} else {
							RScUd31 = false;
							RScUp31 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd31 = true;
						} else {
							RScDd31 = false;
							RScDp31 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd31 = true;
						} else {
							bLPd31 = false;
							bLPp31 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd31 = true;
						} else {
							bRPd31 = false;
							bRPp31 = false;
						}
						return false;
					}

				});
			}
			if (i == 31) {
				controller32 = Controllers.getControllers().get(i);
				controller32.getUniqueId();
				controller32.addListener(new ControllerListener() {

					@Override
					public void connected(Controller controller) {
						String _name = controller.getName();
						String _id = controller.getUniqueId();
						System.out.println("connected controller32 controller to the game. Controller: " + controller);
						System.out.println("connected controller32 controller to the game. Name: " + _name);
						System.out.println("connected controller32 controller to the game. Id: " + _id);
					}

					@Override
					public void disconnected(Controller controller) {
						controller.getName();
						System.out.println("disconnected controller32 controller from the game. Controller: " + controller);
					}

					@Override
					public boolean buttonDown(Controller controller, int buttonCode) {
						if (buttonCode == 2) {
							bLd32 = true;
							return false;
						}
						if (buttonCode == 1) {
							bRd32 = true;
							return false;
						}
						if (buttonCode == 3) {
							bUd32 = true;
							return false;
						}
						if (buttonCode == 0) {
							bDd32 = true;
							return false;
						}
						if (buttonCode == 4) {
							bSeld32 = true;
							return false;
						}
						if (buttonCode == 5) {
							b_5d32 = true;
							return false;
						}
						if (buttonCode == 6) {
							bStd32 = true;
							return false;
						}
						if (buttonCode == 7) {
							bLJBd32 = true;
							return false;
						}
						if (buttonCode == 8) {
							bRJBd32 = true;
							return false;
						}
						if (buttonCode == 9) {
							bLTd32 = true;
							return false;
						}
						if (buttonCode == 10) {
							bRTd32 = true;
							return false;
						}
						if (buttonCode == 11) {
							b_11d32 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_12d32 = true;
							return false;
						}
						if (buttonCode == 13) {
							b_13d32 = true;
							return false;
						}
						if (buttonCode == 14) {
							b_14d32 = true;
							return false;
						}
						return false;
					}

					@Override
					public boolean buttonUp(Controller controller, int buttonCode) {
						if (buttonCode == 2)
							bLd32 = false;
						if (buttonCode == 1)
							bRd32 = false;
						if (buttonCode == 3)
							bUd32 = false;
						if (buttonCode == 0)
							bDd32 = false;
						if (buttonCode == 4)
							bSeld32 = false;
						if (buttonCode == 5)
							b_5d32 = false;
						if (buttonCode == 6)
							bStd32 = false;
						if (buttonCode == 7)
							bLJBd32 = false;
						if (buttonCode == 8)
							bRJBd32 = false;
						if (buttonCode == 9)
							bLTd32 = false;
						if (buttonCode == 10)
							bRTd32 = false;
						if (buttonCode == 11)
							b_11d32 = false;
						if (buttonCode == 12)
							b_12d32 = false;
						if (buttonCode == 13)
							b_13d32 = false;
						if (buttonCode == 14)
							b_14d32 = false;
						bRp32 = false;
						bUp32 = false;
						bDp32 = false;
						bSelp32 = false;
						bStp32 = false;
						bLTp32 = false;
						bRTp32 = false;
						bLJBp32 = false;
						bRJBp32 = false;
						b_5p32 = false;
						b_11p32 = false;
						b_12p32 = false;
						b_13p32 = false;
						b_14p32 = false;
						return false;
					}

					@Override
					public boolean axisMoved(Controller controller, int axisCode, float value) {
						if (controller.getAxis(0) <= -.05) {
							LScLd32 = true;
						} else {
							LScLd32 = false;
							LScLp32 = false;
						}
						if (controller.getAxis(0) >= .05) {
							LScRd32 = true;
						} else {
							LScRd32 = false;
							LScRp32 = false;
						}
						if (controller.getAxis(1) <= -.05) {
							LScUd32 = true;
						} else {
							LScUd32 = false;
							LScUp32 = false;
						}
						if (controller.getAxis(1) >= .05) {
							LScDd32 = true;
						} else {
							LScDd32 = false;
							LScDp32 = false;
						}
						if (controller.getAxis(2) <= -.05) {
							RScLd32 = true;
						} else {
							RScLd32 = false;
							RScLp32 = false;
						}
						if (controller.getAxis(2) >= .05) {
							RScRd32 = true;
						} else {
							RScRd32 = false;
							RScRp32 = false;
						}
						if (controller.getAxis(3) <= -.05) {
							RScUd32 = true;
						} else {
							RScUd32 = false;
							RScUp32 = false;
						}
						if (controller.getAxis(3) >= .05) {
							RScDd32 = true;
						} else {
							RScDd32 = false;
							RScDp32 = false;
						}
						if (controller.getAxis(4) >= .05) {
							bLPd32 = true;
						} else {
							bLPd32 = false;
							bLPp32 = false;
						}
						if (controller.getAxis(5) >= .05) {
							bRPd32 = true;
						} else {
							bRPd32 = false;
							bRPp32 = false;
						}
						return false;
					}

				});
			}
		}

	}

	public Controller GetRightController(int num) {
		if (num == 1)
			return controller;
		if (num == 2)
			return controller2;
		if (num == 3)
			return controller3;
		if (num == 4)
			return controller4;
		if (num == 5)
			return controller5;
		if (num == 6)
			return controller6;
		if (num == 7)
			return controller7;
		if (num == 8)
			return controller8;
		if (num == 9)
			return controller9;
		if (num == 10)
			return controller10;
		if (num == 11)
			return controller11;
		if (num == 12)
			return controller12;
		if (num == 13)
			return controller13;
		if (num == 14)
			return controller14;
		if (num == 20)
			return controller20;
		if (num == 16)
			return controller16;
		if (num == 17)
			return controller17;
		if (num == 18)
			return controller18;
		if (num == 19)
			return controller19;
		if (num == 20)
			return controller20;
		if (num == 21)
			return controller21;
		if (num == 22)
			return controller22;
		if (num == 23)
			return controller23;
		if (num == 24)
			return controller24;
		if (num == 25)
			return controller25;
		if (num == 26)
			return controller26;
		if (num == 27)
			return controller27;
		if (num == 28)
			return controller28;
		if (num == 29)
			return controller29;
		if (num == 30)
			return controller30;
		if (num == 31)
			return controller31;
		if (num == 32)
			return controller32;
		else
			return controller;
	}

	public static boolean GetAnyPausePersonKeyMouseOrButton(String key) {
		if (Objects.equals(key, "pp_left_key")) {
			String ppB = "pp_left_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasterleft";
			String ppJ = "LSLeft_IsJoy_PausePlayer";
			String p1B = "p1_left_button";
			String p1M = "p1masterleft";
			String p1J = "LSLeft_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString(ppM, "Left_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString(p1M, "Left_IsKeyboard_PlayerOne");// player one is the only one that piggybacks.
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);
				ddd.GameSettings.putInteger("p1_left_key", Global.KeycodeSet);// player one is the only one that piggybacks.
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, ppM, "Left_IsMouse_PausePlayer", "p1_left_key", p1M, "Left_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_right_key")) {
			String ppB = "pp_right_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasterright";
			String ppJ = "LSRight_IsJoy_PausePlayer";
			String p1B = "p1_right_button";
			String p1M = "p1masterright";
			String p1J = "LSRight_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString(ppM, "Right_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString(p1M, "Right_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_right_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, ppM, "Right_IsMouse_PausePlayer", "p1_right_key", p1M, "Right_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_up_key")) {
			String ppB = "pp_up_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasterup";
			String ppJ = "LSUp_IsJoy_PausePlayer";
			String p1B = "p1_up_button";
			String p1M = "p1masterup";
			String p1J = "LSUp_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString(ppM, "Up_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString(p1M, "Up_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_up_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, ppM, "Up_IsMouse_PausePlayer", "p1_up_key", p1M, "Up_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_down_key")) {
			String ppB = "pp_down_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasterdown";
			String ppJ = "LSDown_IsJoy_PausePlayer";
			String p1B = "p1_down_button";
			String p1M = "p1masterdown";
			String p1J = "LSDown_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString(ppM, "Down_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString(p1M, "Down_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_down_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, ppM, "Down_IsMouse_PausePlayer", "p1_down_key", p1M, "Down_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_aim_left_key")) {
			String ppB = "pp_aim_left_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasteraimleft";
			String ppJ = "RSLeft_IsJoy_PausePlayer";
			String p1B = "p1_aim_left_button";
			String p1M = "p1masteraimleft";
			String p1J = "RSLeft_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString(ppM, "Aim_Left_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString(p1M, "Aim_Left_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_aim_left_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, ppM, "Aim_Left_IsMouse_PausePlayer", "p1_aim_left_key", p1M, "Aim_Left_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_aim_right_key")) {
			String ppB = "pp_aim_right_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasteraimright";
			String ppJ = "RSRight_IsJoy_PausePlayer";
			String p1B = "p1_aim_right_button";
			String p1M = "p1masteraimright";
			String p1J = "RSRight_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("ppmasteraimright", "Aim_Right_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString("p1masteraimright", "Aim_Right_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_aim_right_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, "ppmasteraimright", "Aim_Right_IsMouse_PausePlayer", "p1_aim_right_key", "p1masteraimright",
					"Aim_Right_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_aim_up_key")) {
			String ppB = "pp_aim_up_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasteraimup";
			String ppJ = "RSUp_IsJoy_PausePlayer";
			String p1B = "p1_aim_up_button";
			String p1M = "p1masteraimup";
			String p1J = "RSUp_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("ppmasteraimup", "Aim_Up_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString("p1masteraimup", "Aim_Up_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_aim_up_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, "ppmasteraimup", "Aim_Up_IsMouse_PausePlayer", "p1_aim_up_key", "p1masteraimup",
					"Aim_Up_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_aim_down_key")) {
			String ppB = "pp_aim_down_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasteraimdown";
			String ppJ = "RSDown_IsJoy_PausePlayer";
			String p1B = "p1_aim_down_button";
			String p1M = "p1masteraimdown";
			String p1J = "RSDown_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("ppmasteraimdown", "Aim_Down_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString("p1masteraimdown", "Aim_Down_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_aim_down_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, "ppmasteraimdown", "Aim_Down_IsMouse_PausePlayer", "p1_aim_down_key", "p1masteraimdown",
					"Aim_Down_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_fire_key")) {
			String ppB = "pp_fire_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasterfire";
			String ppJ = "Fire_IsJoy_PausePlayer";
			String p1B = "p1_fire_button";
			String p1M = "p1masterfire";
			String p1J = "Fire_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("ppmasterfire", "Fire_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString("p1masterfire", "Fire_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_fire_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, "ppmasterfire", "Fire_IsMouse_PausePlayer", "p1_fire_key", "p1masterfire", "Fire_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_jump_key")) {
			String ppB = "pp_jump_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasterjump";
			String ppJ = "Jump_IsJoy_PausePlayer";
			String p1B = "p1_jump_button";
			String p1M = "p1masterjump";
			String p1J = "Jump_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("ppmasterjump", "Jump_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString("p1masterjump", "Jump_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_jump_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, "ppmasterjump", "Jump_IsMouse_PausePlayer", "p1_jump_key", "p1masterjump", "Jump_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_inventory_key")) {
			String ppB = "pp_inventory_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasterinventory";
			String ppJ = "Inventory_IsJoy_PausePlayer";
			String p1B = "p1_inventory_button";
			String p1M = "p1masterinventory";
			String p1J = "Inventory_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("ppmasterinventory", "Inventory_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString("p1masterinventory", "Inventory_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_inventory_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, "ppmasterinventory", "Inventory_IsMouse_PausePlayer", "p1_inventory_key", "p1masterinventory",
					"Inventory_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_crouch_key")) {
			String ppB = "pp_crouch_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmastercrouch";
			String ppJ = "Crouch_IsJoy_PausePlayer";
			String p1B = "p1_crouch_button";
			String p1M = "p1mastercrouch";
			String p1J = "Crouch_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("ppmastercrouch", "Crouch_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString("p1mastercrouch", "Crouch_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_crouch_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, "ppmastercrouch", "Crouch_IsMouse_PausePlayer", "p1_crouch_key", "p1mastercrouch",
					"Crouch_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_sprint_key")) {
			String ppB = "pp_sprint_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmastersprint";
			String ppJ = "Sprint_IsJoy_PausePlayer";
			String p1B = "p1_sprint_button";
			String p1M = "p1mastersprint";
			String p1J = "Sprint_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("ppmastersprint", "Sprint_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString("p1mastersprint", "Sprint_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_sprint_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, "ppmastersprint", "Sprint_IsMouse_PausePlayer", "p1_sprint_key", "p1mastersprint",
					"Sprint_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_select_key")) {
			String ppB = "pp_select_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasterselect";
			String ppJ = "Select_IsJoy_PausePlayer";
			String p1B = "p1_select_button";
			String p1M = "p1masterselect";
			String p1J = "Select_IsMouse_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("ppmasterselect", "Select_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString("p1masterselect", "Select_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_select_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, "ppmasterselect", "Select_IsMouse_PausePlayer", "p1_select_key", "p1masterselect",
					"Select_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		} else if (Objects.equals(key, "pp_start_key")) {
			String ppB = "pp_start_button";// set them here because there's 32 of them? ;-)
			String ppM = "ppmasterstart";
			String ppJ = "Start_IsJoy_PausePlayer";
			String p1B = "p1_start_button";
			String p1M = "p1masterstart";
			String p1J = "Start_IsJoy_PlayerOne";
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("ppmasterstart", "Start_IsKeyboard_PausePlayer");
				ddd.GameSettings.putString("p1masterstart", "Start_IsKeyboard_PlayerOne");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.putInteger("p1_start_key", Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput.LoadDefaultInputs();
				Uinput1.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAPausePersonMouseButton(key, "ppmasterstart", "Start_IsMouse_PausePlayer", "p1_start_key", "p1masterstart",
					"Start_IsMouse_PlayerOne"))
				return true;
			else if (CheckIfItIsAPausePersonJoystickButton(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick2Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick3Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick4Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick5Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick6Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick7Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick8Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick9Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick10Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick11Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick12Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick13Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick14Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick15Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick16Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick17Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick18Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick19Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick20Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick21Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick22Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick23Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick24Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick25Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick26Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick27Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick28Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick29Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick30Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick31Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
			else if (CheckIfItIsAPausePersonJoystick32Button(ppB, ppM, ppJ, p1B, p1M, p1J))
				return true;
		}
		return false;
	}

	public static boolean GetAnyPlayerTwoKeyMouseOrButton(String key) {
		if (Objects.equals(key, "p2_left_key")) {
			String p2B = "p2_left_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masterleft";
			String p2J = "LSLeft_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString(p2M, "Left_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, p2M, "Left_IsMouse_PlayerTwo", p2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_right_key")) {
			String p2B = "p2_right_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masterright";
			String p2J = "LSRight_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masterright", "Right_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masterright", "Right_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_up_key")) {
			String p2B = "p2_up_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masterup";
			String p2J = "LSUp_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masterup", "Up_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masterup", "Up_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_down_key")) {
			String p2B = "p2_down_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masterdown";
			String p2J = "LSDown_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masterdown", "Down_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masterdown", "Down_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_aim_left_key")) {
			String p2B = "p2_aim_left_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masteraimleft";
			String p2J = "RSLeft_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masteraimleft", "Aim_Left_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masteraimleft", "Aim_Left_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_aim_right_key")) {
			String p2B = "p2_aim_right_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masteraimright";
			String p2J = "RSRight_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masteraimright", "Aim_Right_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masteraimright", "Aim_Right_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_aim_up_key")) {
			String p2B = "p2_aim_up_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masteraimup";
			String p2J = "RSUp_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masteraimup", "Aim_Up_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masteraimup", "Aim_Up_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_aim_down_key")) {
			String p2B = "p2_aim_down_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masteraimdown";
			String p2J = "RSDown_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masteraimdown", "Aim_Down_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masteraimdown", "Aim_Down_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_fire_key")) {
			String p2B = "p2_fire_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masterfire";
			String p2J = "Fire_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masterfire", "Fire_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masterfire", "Fire_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_jump_key")) {
			String p2B = "p2_jump_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masterjump";
			String p2J = "Jump_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masterjump", "Jump_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masterjump", "Jump_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_inventory_key")) {
			String p2B = "p2_inventory_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masterinventory";
			String p2J = "Inventory_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masterinventory", "Inventory_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masterinventory", "Inventory_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_crouch_key")) {
			String p2B = "p2_crouch_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2mastercrouch";
			String p2J = "Crouch_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2mastercrouch", "Crouch_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2mastercrouch", "Crouch_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_sprint_key")) {
			String p2B = "p2_sprint_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2mastersprint";
			String p2J = "Sprint_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2mastersprint", "Sprint_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2mastersprint", "Sprint_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_select_key")) {
			String p2B = "p2_select_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masterselect";
			String p2J = "Select_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masterselect", "Select_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masterselect", "Select_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		} else if (Objects.equals(key, "p2_start_key")) {
			String p2B = "p2_start_button";// set them here because there's 32 of them? ;-)
			String p2M = "p2masterstart";
			String p2J = "Start_IsJoy_PlayerTwo";
			int p2 = 2;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p2masterstart", "Start_IsKeyboard_PlayerTwo");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput2.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p2masterstart", "Start_IsMouse_PlayerTwo", 2))
				return true;
			else if (CheckIfItIsAJoystickButton(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick2Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick3Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick4Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick5Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick6Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick7Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick8Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick9Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick10Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick11Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick12Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick13Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick14Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick15Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick16Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick17Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick18Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick19Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick20Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick21Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick22Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick23Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick24Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick25Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick26Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick27Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick28Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick29Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick30Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick31Button(p2B, p2M, p2J, p2))
				return true;
			else if (CheckIfItIsAJoystick32Button(p2B, p2M, p2J, p2))
				return true;
		}
		return false;
	}

	public static boolean GetAnyPlayerThreeKeyMouseOrButton(String key) {
		if (Objects.equals(key, "p3_left_key")) {
			String p3B = "p3_left_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masterleft";
			String p3J = "LSLeft_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString(p3M, "Left_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, p3M, "Left_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_right_key")) {
			String p3B = "p3_right_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masterright";
			String p3J = "LSRight_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masterright", "Right_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masterright", "Right_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_up_key")) {
			String p3B = "p3_up_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masterup";
			String p3J = "LSUp_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masterup", "Up_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masterup", "Up_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_down_key")) {
			String p3B = "p3_down_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masterdown";
			String p3J = "LSDown_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masterdown", "Down_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masterdown", "Down_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_aim_left_key")) {
			String p3B = "p3_aim_left_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masteraimleft";
			String p3J = "RSLeft_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masteraimleft", "Aim_Left_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masteraimleft", "Aim_Left_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_aim_right_key")) {
			String p3B = "p3_aim_right_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masteraimright";
			String p3J = "RSRight_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masteraimright", "Aim_Right_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masteraimright", "Aim_Right_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_aim_up_key")) {
			String p3B = "p3_aim_up_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masteraimup";
			String p3J = "RSUp_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masteraimup", "Aim_Up_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masteraimup", "Aim_Up_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_aim_down_key")) {
			String p3B = "p3_aim_down_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masteraimdown";
			String p3J = "RSDown_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masteraimdown", "Aim_Down_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masteraimdown", "Aim_Down_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_fire_key")) {
			String p3B = "p3_fire_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masterfire";
			String p3J = "Fire_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masterfire", "Fire_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masterfire", "Fire_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_jump_key")) {
			String p3B = "p3_jump_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masterjump";
			String p3J = "Jump_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masterjump", "Jump_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masterjump", "Jump_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_inventory_key")) {
			String p3B = "p3_inventory_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masterinventory";
			String p3J = "Inventory_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masterinventory", "Inventory_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masterinventory", "Inventory_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_crouch_key")) {
			String p3B = "p3_crouch_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3mastercrouch";
			String p3J = "Crouch_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3mastercrouch", "Crouch_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3mastercrouch", "Crouch_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_sprint_key")) {
			String p3B = "p3_sprint_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3mastersprint";
			String p3J = "Sprint_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3mastersprint", "Sprint_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3mastersprint", "Sprint_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_select_key")) {
			String p3B = "p3_select_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masterselect";
			String p3J = "Select_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masterselect", "Select_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masterselect", "Select_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		} else if (Objects.equals(key, "p3_start_key")) {
			String p3B = "p3_start_button";// set them here because there's 32 of them? ;-)
			String p3M = "p3masterstart";
			String p3J = "Start_IsJoy_PlayerThree";
			int p3 = 3;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p3masterstart", "Start_IsKeyboard_PlayerThree");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput3.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p3masterstart", "Start_IsMouse_PlayerThree", p3))
				return true;
			else if (CheckIfItIsAJoystickButton(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick2Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick3Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick4Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick5Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick6Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick7Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick8Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick9Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick10Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick11Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick12Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick13Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick14Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick15Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick16Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick17Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick18Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick19Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick20Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick21Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick22Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick23Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick24Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick25Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick26Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick27Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick28Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick29Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick30Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick31Button(p3B, p3M, p3J, p3))
				return true;
			else if (CheckIfItIsAJoystick32Button(p3B, p3M, p3J, p3))
				return true;
		}
		return false;
	}

	public static boolean GetAnyPlayerFourKeyMouseOrButton(String key) {
		if (Objects.equals(key, "p4_left_key")) {
			String p4B = "p4_left_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masterleft";
			String p4J = "LSLeft_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString(p4M, "Left_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, p4M, "Left_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_right_key")) {
			String p4B = "p4_right_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masterright";
			String p4J = "LSRight_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masterright", "Right_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masterright", "Right_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_up_key")) {
			String p4B = "p4_up_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masterup";
			String p4J = "LSUp_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masterup", "Up_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masterup", "Up_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_down_key")) {
			String p4B = "p4_down_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masterdown";
			String p4J = "LSDown_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masterdown", "Down_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masterdown", "Down_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_aim_left_key")) {
			String p4B = "p4_aim_left_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masteraimleft";
			String p4J = "RSLeft_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masteraimleft", "Aim_Left_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masteraimleft", "Aim_Left_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_aim_right_key")) {
			String p4B = "p4_aim_right_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masteraimright";
			String p4J = "RSRight_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masteraimright", "Aim_Right_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masteraimright", "Aim_Right_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_aim_up_key")) {
			String p4B = "p4_aim_up_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masteraimup";
			String p4J = "RSUp_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masteraimup", "Aim_Up_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masteraimup", "Aim_Up_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_aim_down_key")) {
			String p4B = "p4_aim_down_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masteraimdown";
			String p4J = "RSDown_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masteraimdown", "Aim_Down_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masteraimdown", "Aim_Down_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_fire_key")) {
			String p4B = "p4_fire_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masterfire";
			String p4J = "Fire_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masterfire", "Fire_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masterfire", "Fire_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_jump_key")) {
			String p4B = "p4_jump_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masterjump";
			String p4J = "Jump_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masterjump", "Jump_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masterjump", "Jump_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_inventory_key")) {
			String p4B = "p4_inventory_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masterinventory";
			String p4J = "Inventory_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masterinventory", "Inventory_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masterinventory", "Inventory_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_crouch_key")) {
			String p4B = "p4_crouch_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4mastercrouch";
			String p4J = "Crouch_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4mastercrouch", "Crouch_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4mastercrouch", "Crouch_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_sprint_key")) {
			String p4B = "p4_sprint_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4mastersprint";
			String p4J = "Sprint_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4mastersprint", "Sprint_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4mastersprint", "Sprint_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_select_key")) {
			String p4B = "p4_select_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masterselect";
			String p4J = "Select_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masterselect", "Select_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masterselect", "Select_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		} else if (Objects.equals(key, "p4_start_key")) {
			String p4B = "p4_start_button";// set them here because there's 32 of them? ;-)
			String p4M = "p4masterstart";
			String p4J = "Start_IsJoy_PlayerFour";
			int p4 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p4masterstart", "Start_IsKeyboard_PlayerFour");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput4.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p4masterstart", "Start_IsMouse_PlayerFour", p4))
				return true;
			else if (CheckIfItIsAJoystickButton(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick2Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick3Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick4Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick5Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick6Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick7Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick8Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick9Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick10Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick11Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick12Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick13Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick14Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick15Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick16Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick17Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick18Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick19Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick20Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick21Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick22Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick23Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick24Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick25Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick26Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick27Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick28Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick29Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick30Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick31Button(p4B, p4M, p4J, p4))
				return true;
			else if (CheckIfItIsAJoystick32Button(p4B, p4M, p4J, p4))
				return true;
		}
		return false;
	}

	public static boolean GetAnyPlayerFiveKeyMouseOrButton(String key) {
		if (Objects.equals(key, "p5_left_key")) {
			String p5B = "p5_left_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masterleft";
			String p5J = "LSLeft_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString(p5M, "Left_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, p5M, "Left_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_right_key")) {
			String p5B = "p5_right_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masterright";
			String p5J = "LSRight_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masterright", "Right_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masterright", "Right_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_up_key")) {
			String p5B = "p5_up_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masterup";
			String p5J = "LSUp_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masterup", "Up_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masterup", "Up_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_down_key")) {
			String p5B = "p5_down_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masterdown";
			String p5J = "LSDown_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masterdown", "Down_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masterdown", "Down_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_aim_left_key")) {
			String p5B = "p5_aim_left_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masteraimleft";
			String p5J = "RSLeft_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masteraimleft", "Aim_Left_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masteraimleft", "Aim_Left_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_aim_right_key")) {
			String p5B = "p5_aim_right_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masteraimright";
			String p5J = "RSRight_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masteraimright", "Aim_Right_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masteraimright", "Aim_Right_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_aim_up_key")) {
			String p5B = "p5_aim_up_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masteraimup";
			String p5J = "RSUp_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masteraimup", "Aim_Up_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masteraimup", "Aim_Up_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_aim_down_key")) {
			String p5B = "p5_aim_down_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masteraimdown";
			String p5J = "RSDown_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masteraimdown", "Aim_Down_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masteraimdown", "Aim_Down_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_fire_key")) {
			String p5B = "p5_fire_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masterfire";
			String p5J = "Fire_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masterfire", "Fire_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masterfire", "Fire_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_jump_key")) {
			String p5B = "p5_jump_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masterjump";
			String p5J = "Jump_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masterjump", "Jump_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masterjump", "Jump_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_inventory_key")) {
			String p5B = "p5_inventory_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masterinventory";
			String p5J = "Inventory_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masterinventory", "Inventory_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masterinventory", "Inventory_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_crouch_key")) {
			String p5B = "p5_crouch_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5mastercrouch";
			String p5J = "Crouch_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5mastercrouch", "Crouch_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5mastercrouch", "Crouch_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_sprint_key")) {
			String p5B = "p5_sprint_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5mastersprint";
			String p5J = "Sprint_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5mastersprint", "Sprint_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5mastersprint", "Sprint_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_select_key")) {
			String p5B = "p5_select_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masterselect";
			String p5J = "Select_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masterselect", "Select_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masterselect", "Select_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		} else if (Objects.equals(key, "p5_start_key")) {
			String p5B = "p5_start_button";// set them here because there's 32 of them? ;-)
			String p5M = "p5masterstart";
			String p5J = "Start_IsJoy_PlayerFive";
			int p5 = 5;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p5masterstart", "Start_IsKeyboard_PlayerFive");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput5.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p5masterstart", "Start_IsMouse_PlayerFive", p5))
				return true;
			else if (CheckIfItIsAJoystickButton(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick2Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick3Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick4Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick5Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick6Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick7Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick8Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick9Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick10Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick11Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick12Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick13Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick14Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick15Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick16Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick17Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick18Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick19Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick20Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick21Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick22Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick23Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick24Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick25Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick26Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick27Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick28Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick29Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick30Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick31Button(p5B, p5M, p5J, p5))
				return true;
			else if (CheckIfItIsAJoystick32Button(p5B, p5M, p5J, p5))
				return true;
		}
		return false;
	}

	// TODO create this set!
	public static boolean GetAnyPlayerSixKeyMouseOrButton(String key) {
		if (Objects.equals(key, "p6_left_key")) {
			String p6B = "p6_left_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masterleft";
			String p6J = "LSLeft_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString(p6M, "Left_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, p6M, "Left_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_right_key")) {
			String p6B = "p6_right_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masterright";
			String p6J = "LSRight_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masterright", "Right_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masterright", "Right_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_up_key")) {
			String p6B = "p6_up_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masterup";
			String p6J = "LSUp_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masterup", "Up_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masterup", "Up_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_down_key")) {
			String p6B = "p6_down_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masterdown";
			String p6J = "LSDown_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masterdown", "Down_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masterdown", "Down_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_aim_left_key")) {
			String p6B = "p6_aim_left_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masteraimleft";
			String p6J = "RSLeft_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masteraimleft", "Aim_Left_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masteraimleft", "Aim_Left_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_aim_right_key")) {
			String p6B = "p6_aim_right_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masteraimright";
			String p6J = "RSRight_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masteraimright", "Aim_Right_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masteraimright", "Aim_Right_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_aim_up_key")) {
			String p6B = "p6_aim_up_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masteraimup";
			String p6J = "RSUp_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masteraimup", "Aim_Up_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masteraimup", "Aim_Up_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_aim_down_key")) {
			String p6B = "p6_aim_down_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masteraimdown";
			String p6J = "RSDown_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masteraimdown", "Aim_Down_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masteraimdown", "Aim_Down_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_fire_key")) {
			String p6B = "p6_fire_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masterfire";
			String p6J = "Fire_IsJoy_PlayerSix";
			int p6 = 4;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masterfire", "Fire_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masterfire", "Fire_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_jump_key")) {
			String p6B = "p6_jump_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masterjump";
			String p6J = "Jump_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masterjump", "Jump_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masterjump", "Jump_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_inventory_key")) {
			String p6B = "p6_inventory_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masterinventory";
			String p6J = "Inventory_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masterinventory", "Inventory_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masterinventory", "Inventory_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_crouch_key")) {
			String p6B = "p6_crouch_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6mastercrouch";
			String p6J = "Crouch_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6mastercrouch", "Crouch_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6mastercrouch", "Crouch_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_sprint_key")) {
			String p6B = "p6_sprint_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6mastersprint";
			String p6J = "Sprint_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6mastersprint", "Sprint_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6mastersprint", "Sprint_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_select_key")) {
			String p6B = "p6_select_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masterselect";
			String p6J = "Select_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masterselect", "Select_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masterselect", "Select_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		} else if (Objects.equals(key, "p6_start_key")) {
			String p6B = "p6_start_button";// set them here because there's 32 of them? ;-)
			String p6M = "p6masterstart";
			String p6J = "Start_IsJoy_PlayerSix";
			int p6 = 6;
			if (Gdx.input.isKeyJustPressed(Input.Keys.ANY_KEY)) {// any key! so nice!
				ddd.GameSettings.putString("p6masterstart", "Start_IsKeyboard_PlayerSix");
				ddd.GameSettings.putInteger(key, Global.KeycodeSet);// grab that key, so nice!
				ddd.GameSettings.flush();
				Uinput6.LoadDefaultInputs();
				return true;
			} else if (CheckIfItIsAMouseButton(key, "p6masterstart", "Start_IsMouse_PlayerSix", p6))
				return true;
			else if (CheckIfItIsAJoystickButton(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick2Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick3Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick4Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick5Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick6Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick7Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick8Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick9Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick10Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick11Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick12Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick13Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick14Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick15Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick16Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick17Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick18Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick19Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick20Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick21Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick22Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick23Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick24Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick25Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick26Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick27Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick28Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick29Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick30Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick31Button(p6B, p6M, p6J, p6))
				return true;
			else if (CheckIfItIsAJoystick32Button(p6B, p6M, p6J, p6))
				return true;
		}
		return false;
	}

	public static boolean CheckIfItIsAMouseButton(String key, String direction, String master, int playerNumber) {
		if (Gdx.input.isButtonJustPressed(Input.Buttons.LEFT)) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putInteger(key, Input.Buttons.LEFT);
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (Gdx.input.isButtonJustPressed(Input.Buttons.MIDDLE)) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putInteger(key, Input.Buttons.MIDDLE);
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (Gdx.input.isButtonJustPressed(Input.Buttons.RIGHT)) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putInteger(key, Input.Buttons.RIGHT);
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (Gdx.input.isButtonJustPressed(Input.Buttons.FORWARD)) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putInteger(key, Input.Buttons.FORWARD);
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (Gdx.input.isButtonJustPressed(Input.Buttons.BACK)) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putInteger(key, Input.Buttons.BACK);
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static void LoadRightPlayerNumberInput(int playerNumber) {// add these as players get added.
		if (playerNumber == 0)
			Uinput.LoadDefaultInputs();
		else if (playerNumber == 1)
			Uinput1.LoadDefaultInputs();
		else if (playerNumber == 2)
			Uinput2.LoadDefaultInputs();
		else if (playerNumber == 3)
			Uinput3.LoadDefaultInputs();
		else if (playerNumber == 4)
			Uinput4.LoadDefaultInputs();
		else if (playerNumber == 5)
			Uinput5.LoadDefaultInputs();
		else if (playerNumber == 6)
			Uinput6.LoadDefaultInputs();
	}

	public static String GetMappedKey(String inputCode) {
		if (Objects.equals(inputCode, "Right_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPRight());
		if (Objects.equals(inputCode, "Left_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPLeft());
		if (Objects.equals(inputCode, "Up_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPUp());
		if (Objects.equals(inputCode, "Down_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPDown());
		if (Objects.equals(inputCode, "Aim_Right_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPAimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPAimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPAimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPAimDown());
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPFire());
		if (Objects.equals(inputCode, "Select_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPSelect());
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPJump());
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPInventory());
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPCrouch());
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPSprint());
		if (Objects.equals(inputCode, "Start_IsKeyboard_PausePlayer"))
			return Input.Keys.toString(Uinput.PPStart());
		if (Objects.equals(inputCode, "Right_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPRight());
		if (Objects.equals(inputCode, "Left_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPLeft());
		if (Objects.equals(inputCode, "Up_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPUp());
		if (Objects.equals(inputCode, "Down_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPDown());
		if (Objects.equals(inputCode, "Aim_Right_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPAimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPAimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPAimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPAimDown());
		if (Objects.equals(inputCode, "Fire_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPFire());
		if (Objects.equals(inputCode, "Select_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPSelect());
		if (Objects.equals(inputCode, "Jump_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPJump());
		if (Objects.equals(inputCode, "Inventory_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPInventory());
		if (Objects.equals(inputCode, "Crouch_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPCrouch());
		if (Objects.equals(inputCode, "Sprint_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPSprint());
		if (Objects.equals(inputCode, "Start_IsMouse_PausePlayer"))
			return CheckMouseButtonToString(Uinput.PPStart());
		if (Objects.equals(inputCode, "LSRight_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyLSRight());
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyLSLeft());
		if (Objects.equals(inputCode, "LSUp_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyLSUp());
		if (Objects.equals(inputCode, "LSDown_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyLSDown());
		if (Objects.equals(inputCode, "RSRight_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyRSRight());
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyRSLeft());
		if (Objects.equals(inputCode, "RSUp_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyRSUp());
		if (Objects.equals(inputCode, "RSDown_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyRSDown());
		if (Objects.equals(inputCode, "Fire_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyFire());
		if (Objects.equals(inputCode, "Select_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoySelect());
		if (Objects.equals(inputCode, "Jump_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyJump());
		if (Objects.equals(inputCode, "Inventory_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyInventory());
		if (Objects.equals(inputCode, "Crouch_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyCrouch());
		if (Objects.equals(inputCode, "Sprint_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoySprint());
		if (Objects.equals(inputCode, "Start_IsJoy_PausePlayer"))
			return CheckJoyButtonToString(Uinput.PPJoyStart());
		// player one
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Right());
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Left());
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Up());
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Down());
		if (Objects.equals(inputCode, "Aim_Right_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1AimDown());
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Fire());
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Select());
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Jump());
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Inventory());
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Crouch());
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Sprint());
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerOne"))
			return Input.Keys.toString(Uinput1.P1Start());
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Right());
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Left());
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Up());
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Down());
		if (Objects.equals(inputCode, "Aim_Right_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1AimDown());
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Fire());
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Select());
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Jump());
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Inventory());
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Crouch());
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Sprint());
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerOne"))
			return CheckMouseButtonToString(Uinput1.P1Start());
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyLSRight());
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyLSLeft());
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyLSUp());
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyLSDown());
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyRSRight());
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyRSLeft());
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyRSUp());
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyRSDown());
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyFire());
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoySelect());
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyJump());
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyInventory());
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyCrouch());
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoySprint());
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerOne"))
			return CheckJoyButtonToString(Uinput1.P1JoyStart());
		// player two
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Right());
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Left());
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Up());
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Down());
		if (Objects.equals(inputCode, "Aim_Right_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2AimDown());
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Fire());
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Select());
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Jump());
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Inventory());
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Crouch());
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Sprint());
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerTwo"))
			return Input.Keys.toString(Uinput2.P2Start());
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Right());
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Left());
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Up());
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Down());
		if (Objects.equals(inputCode, "Aim_Right_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2AimDown());
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Fire());
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Select());
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Jump());
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Inventory());
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Crouch());
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Sprint());
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerTwo"))
			return CheckMouseButtonToString(Uinput2.P2Start());
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyLSRight());
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyLSLeft());
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyLSUp());
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyLSDown());
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyRSRight());
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyRSLeft());
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyRSUp());
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyRSDown());
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyFire());
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoySelect());
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyJump());
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyInventory());
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyCrouch());
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoySprint());
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerTwo"))
			return CheckJoyButtonToString(Uinput2.P2JoyStart());
		// player Three
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Right());
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Left());
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Up());
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Down());
		if (Objects.equals(inputCode, "Aim_Right_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3AimDown());
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Fire());
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Select());
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Jump());
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Inventory());
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Crouch());
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Sprint());
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerThree"))
			return Input.Keys.toString(Uinput3.P3Start());
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Right());
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Left());
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Up());
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Down());
		if (Objects.equals(inputCode, "Aim_Right_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3AimDown());
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Fire());
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Select());
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Jump());
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Inventory());
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Crouch());
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Sprint());
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerThree"))
			return CheckMouseButtonToString(Uinput3.P3Start());
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyLSRight());
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyLSLeft());
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyLSUp());
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyLSDown());
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyRSRight());
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyRSLeft());
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyRSUp());
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyRSDown());
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyFire());
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoySelect());
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyJump());
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyInventory());
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyCrouch());
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoySprint());
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerThree"))
			return CheckJoyButtonToString(Uinput3.P3JoyStart());
		// player Four
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Right());
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Left());
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Up());
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Down());
		if (Objects.equals(inputCode, "Aim_Right_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4AimDown());
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Fire());
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Select());
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Jump());
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Inventory());
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Crouch());
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Sprint());
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerFour"))
			return Input.Keys.toString(Uinput4.P4Start());
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Right());
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Left());
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Up());
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Down());
		if (Objects.equals(inputCode, "Aim_Right_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4AimDown());
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Fire());
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Select());
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Jump());
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Inventory());
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Crouch());
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Sprint());
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerFour"))
			return CheckMouseButtonToString(Uinput4.P4Start());
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyLSRight());
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyLSLeft());
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyLSUp());
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyLSDown());
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyRSRight());
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyRSLeft());
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyRSUp());
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyRSDown());
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyFire());
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoySelect());
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyJump());
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyInventory());
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyCrouch());
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoySprint());
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerFour"))
			return CheckJoyButtonToString(Uinput4.P4JoyStart());
		// player Five
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Right());
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Left());
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Up());
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Down());
		if (Objects.equals(inputCode, "Aim_Right_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5AimDown());
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Fire());
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Select());
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Jump());
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Inventory());
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Crouch());
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Sprint());
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerFive"))
			return Input.Keys.toString(Uinput5.P5Start());
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Right());
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Left());
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Up());
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Down());
		if (Objects.equals(inputCode, "Aim_Right_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5AimDown());
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Fire());
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Select());
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Jump());
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Inventory());
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Crouch());
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Sprint());
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerFive"))
			return CheckMouseButtonToString(Uinput5.P5Start());
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyLSRight());
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyLSLeft());
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyLSUp());
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyLSDown());
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyRSRight());
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyRSLeft());
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyRSUp());
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyRSDown());
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyFire());
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoySelect());
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyJump());
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyInventory());
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyCrouch());
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoySprint());
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerFive"))
			return CheckJoyButtonToString(Uinput5.P5JoyStart());
		// player Six
		if (Objects.equals(inputCode, "Right_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Right());
		if (Objects.equals(inputCode, "Left_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Left());
		if (Objects.equals(inputCode, "Up_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Up());
		if (Objects.equals(inputCode, "Down_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Down());
		if (Objects.equals(inputCode, "Aim_Right_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6AimDown());
		if (Objects.equals(inputCode, "Fire_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Fire());
		if (Objects.equals(inputCode, "Select_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Select());
		if (Objects.equals(inputCode, "Jump_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Jump());
		if (Objects.equals(inputCode, "Inventory_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Inventory());
		if (Objects.equals(inputCode, "Crouch_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Crouch());
		if (Objects.equals(inputCode, "Sprint_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Sprint());
		if (Objects.equals(inputCode, "Start_IsKeyboard_PlayerSix"))
			return Input.Keys.toString(Uinput6.P6Start());
		if (Objects.equals(inputCode, "Right_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Right());
		if (Objects.equals(inputCode, "Left_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Left());
		if (Objects.equals(inputCode, "Up_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Up());
		if (Objects.equals(inputCode, "Down_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Down());
		if (Objects.equals(inputCode, "Aim_Right_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6AimRight());
		if (Objects.equals(inputCode, "Aim_Left_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6AimLeft());
		if (Objects.equals(inputCode, "Aim_Up_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6AimUp());
		if (Objects.equals(inputCode, "Aim_Down_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6AimDown());
		if (Objects.equals(inputCode, "Fire_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Fire());
		if (Objects.equals(inputCode, "Select_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Select());
		if (Objects.equals(inputCode, "Jump_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Jump());
		if (Objects.equals(inputCode, "Inventory_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Inventory());
		if (Objects.equals(inputCode, "Crouch_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Crouch());
		if (Objects.equals(inputCode, "Sprint_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Sprint());
		if (Objects.equals(inputCode, "Start_IsMouse_PlayerSix"))
			return CheckMouseButtonToString(Uinput6.P6Start());
		if (Objects.equals(inputCode, "LSRight_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyLSRight());
		if (Objects.equals(inputCode, "LSLeft_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyLSLeft());
		if (Objects.equals(inputCode, "LSUp_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyLSUp());
		if (Objects.equals(inputCode, "LSDown_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyLSDown());
		if (Objects.equals(inputCode, "RSRight_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyRSRight());
		if (Objects.equals(inputCode, "RSLeft_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyRSLeft());
		if (Objects.equals(inputCode, "RSUp_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyRSUp());
		if (Objects.equals(inputCode, "RSDown_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyRSDown());
		if (Objects.equals(inputCode, "Fire_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyFire());
		if (Objects.equals(inputCode, "Select_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoySelect());
		if (Objects.equals(inputCode, "Jump_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyJump());
		if (Objects.equals(inputCode, "Inventory_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyInventory());
		if (Objects.equals(inputCode, "Crouch_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyCrouch());
		if (Objects.equals(inputCode, "Sprint_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoySprint());
		if (Objects.equals(inputCode, "Start_IsJoy_PlayerSix"))
			return CheckJoyButtonToString(Uinput6.P6JoyStart());
		return "Unknown Mapping?! Seriously, how do you not have every mapping at this point? WHATISTHIS: " + inputCode;
	}

	public static boolean CheckIfItIsAPausePersonMouseButton(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (Gdx.input.isButtonJustPressed(Input.Buttons.LEFT)) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putInteger(key, Input.Buttons.LEFT);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putInteger(p1Key, Input.Buttons.LEFT);
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (Gdx.input.isButtonJustPressed(Input.Buttons.MIDDLE)) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putInteger(key, Input.Buttons.MIDDLE);
			ddd.GameSettings.putInteger(p1Key, Input.Buttons.MIDDLE);
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (Gdx.input.isButtonJustPressed(Input.Buttons.RIGHT)) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putInteger(key, Input.Buttons.RIGHT);
			ddd.GameSettings.putInteger(p1Key, Input.Buttons.RIGHT);
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (Gdx.input.isButtonJustPressed(Input.Buttons.FORWARD)) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putInteger(key, Input.Buttons.FORWARD);
			ddd.GameSettings.putInteger(p1Key, Input.Buttons.FORWARD);
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (Gdx.input.isButtonJustPressed(Input.Buttons.BACK)) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putInteger(key, Input.Buttons.BACK);
			ddd.GameSettings.putInteger(p1Key, Input.Buttons.BACK);
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystickButton(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd");
			ddd.GameSettings.putString(p1Key, "bLd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd");
			ddd.GameSettings.putString(p1Key, "bRd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd");
			ddd.GameSettings.putString(p1Key, "bUd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd");
			ddd.GameSettings.putString(p1Key, "bDd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld");
			ddd.GameSettings.putString(p1Key, "bSeld");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd");
			ddd.GameSettings.putString(p1Key, "bStd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd");
			ddd.GameSettings.putString(p1Key, "bLTd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd");
			ddd.GameSettings.putString(p1Key, "bRTd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd");
			ddd.GameSettings.putString(p1Key, "bLJBd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd");
			ddd.GameSettings.putString(p1Key, "bRJBd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d");
			ddd.GameSettings.putString(p1Key, "b_5d");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d");
			ddd.GameSettings.putString(p1Key, "b_11d");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d");
			ddd.GameSettings.putString(p1Key, "b_12d");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d");
			ddd.GameSettings.putString(p1Key, "b_13d");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d");
			ddd.GameSettings.putString(p1Key, "b_14d");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd");
			ddd.GameSettings.putString(p1Key, "LScLd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd");
			ddd.GameSettings.putString(p1Key, "LScRd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd");
			ddd.GameSettings.putString(p1Key, "LScUd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd");
			ddd.GameSettings.putString(p1Key, "LScDd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd");
			ddd.GameSettings.putString(p1Key, "RScLd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd");
			ddd.GameSettings.putString(p1Key, "RScRd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd");
			ddd.GameSettings.putString(p1Key, "RScUd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd");
			ddd.GameSettings.putString(p1Key, "RScDd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd");
			ddd.GameSettings.putString(p1Key, "bLPd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd");
			ddd.GameSettings.putString(p1Key, "bRPd");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystickButton(String key, String direction, String master, int playerNumber) {
		if (bLd) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick2Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd2) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd2");
			ddd.GameSettings.putString(p1Key, "bLd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd2) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd2");
			ddd.GameSettings.putString(p1Key, "bRd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd2");
			ddd.GameSettings.putString(p1Key, "bUd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd2");
			ddd.GameSettings.putString(p1Key, "bDd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld2");
			ddd.GameSettings.putString(p1Key, "bSeld2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd2");
			ddd.GameSettings.putString(p1Key, "bStd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd2");
			ddd.GameSettings.putString(p1Key, "bLTd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd2");
			ddd.GameSettings.putString(p1Key, "bRTd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd2");
			ddd.GameSettings.putString(p1Key, "bLJBd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd2");
			ddd.GameSettings.putString(p1Key, "bRJBd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d2");
			ddd.GameSettings.putString(p1Key, "b_5d2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d2");
			ddd.GameSettings.putString(p1Key, "b_11d2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d2");
			ddd.GameSettings.putString(p1Key, "b_12d2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d2");
			ddd.GameSettings.putString(p1Key, "b_13d2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d2");
			ddd.GameSettings.putString(p1Key, "b_14d2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd2) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd2");
			ddd.GameSettings.putString(p1Key, "LScLd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd2) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd2");
			ddd.GameSettings.putString(p1Key, "LScRd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd2) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd2");
			ddd.GameSettings.putString(p1Key, "LScUd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd2) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd2");
			ddd.GameSettings.putString(p1Key, "LScDd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd2) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd2");
			ddd.GameSettings.putString(p1Key, "RScLd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd2) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd2");
			ddd.GameSettings.putString(p1Key, "RScRd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd2) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd2");
			ddd.GameSettings.putString(p1Key, "RScUd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd2) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd2");
			ddd.GameSettings.putString(p1Key, "RScDd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd2) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd2");
			ddd.GameSettings.putString(p1Key, "bLPd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd2) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd2");
			ddd.GameSettings.putString(p1Key, "bRPd2");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick2Button(String key, String direction, String master, int playerNumber) {
		if (bLd2) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd2) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d2) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd2) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd2) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd2) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd2) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd2) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd2) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd2) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd2) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd2) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd2) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd2");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick3Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd3) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd3");
			ddd.GameSettings.putString(p1Key, "bLd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd3) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd3");
			ddd.GameSettings.putString(p1Key, "bRd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd3");
			ddd.GameSettings.putString(p1Key, "bUd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd3");
			ddd.GameSettings.putString(p1Key, "bDd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld3");
			ddd.GameSettings.putString(p1Key, "bSeld3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd3");
			ddd.GameSettings.putString(p1Key, "bStd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd3");
			ddd.GameSettings.putString(p1Key, "bLTd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd3");
			ddd.GameSettings.putString(p1Key, "bRTd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd3");
			ddd.GameSettings.putString(p1Key, "bLJBd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd3");
			ddd.GameSettings.putString(p1Key, "bRJBd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d3");
			ddd.GameSettings.putString(p1Key, "b_5d3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d3");
			ddd.GameSettings.putString(p1Key, "b_11d3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d3");
			ddd.GameSettings.putString(p1Key, "b_12d3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d3");
			ddd.GameSettings.putString(p1Key, "b_13d3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d3");
			ddd.GameSettings.putString(p1Key, "b_14d3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd3) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd3");
			ddd.GameSettings.putString(p1Key, "LScLd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd3) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd3");
			ddd.GameSettings.putString(p1Key, "LScRd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd3) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd3");
			ddd.GameSettings.putString(p1Key, "LScUd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd3) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd3");
			ddd.GameSettings.putString(p1Key, "LScDd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd3) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd3");
			ddd.GameSettings.putString(p1Key, "RScLd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd3) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd3");
			ddd.GameSettings.putString(p1Key, "RScRd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd3) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd3");
			ddd.GameSettings.putString(p1Key, "RScUd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd3) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd3");
			ddd.GameSettings.putString(p1Key, "RScDd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd3) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd3");
			ddd.GameSettings.putString(p1Key, "bLPd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd3) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd3");
			ddd.GameSettings.putString(p1Key, "bRPd3");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick3Button(String key, String direction, String master, int playerNumber) {
		if (bLd3) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd3) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d3) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd3) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd3) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd3) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd3) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd3) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd3) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd3) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd3) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd3) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd3) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd3");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick4Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd4) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd4");
			ddd.GameSettings.putString(p1Key, "bLd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd4) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd4");
			ddd.GameSettings.putString(p1Key, "bRd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd4");
			ddd.GameSettings.putString(p1Key, "bUd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd4");
			ddd.GameSettings.putString(p1Key, "bDd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld4");
			ddd.GameSettings.putString(p1Key, "bSeld4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd4");
			ddd.GameSettings.putString(p1Key, "bStd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd4");
			ddd.GameSettings.putString(p1Key, "bLTd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd4");
			ddd.GameSettings.putString(p1Key, "bRTd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd4");
			ddd.GameSettings.putString(p1Key, "bLJBd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd4");
			ddd.GameSettings.putString(p1Key, "bRJBd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d4");
			ddd.GameSettings.putString(p1Key, "b_5d4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d4");
			ddd.GameSettings.putString(p1Key, "b_11d4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d4");
			ddd.GameSettings.putString(p1Key, "b_12d4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d4");
			ddd.GameSettings.putString(p1Key, "b_13d4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d4");
			ddd.GameSettings.putString(p1Key, "b_14d4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd4) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd4");
			ddd.GameSettings.putString(p1Key, "LScLd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd4) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd4");
			ddd.GameSettings.putString(p1Key, "LScRd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd4) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd4");
			ddd.GameSettings.putString(p1Key, "LScUd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd4) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd4");
			ddd.GameSettings.putString(p1Key, "LScDd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd4) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd4");
			ddd.GameSettings.putString(p1Key, "RScLd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd4) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd4");
			ddd.GameSettings.putString(p1Key, "RScRd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd4) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd4");
			ddd.GameSettings.putString(p1Key, "RScUd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd4) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd4");
			ddd.GameSettings.putString(p1Key, "RScDd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd4) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd4");
			ddd.GameSettings.putString(p1Key, "bLPd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd4) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd4");
			ddd.GameSettings.putString(p1Key, "bRPd4");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick4Button(String key, String direction, String master, int playerNumber) {
		if (bLd4) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd4) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d4) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd4) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd4) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd4) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd4) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd4) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd4) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd4) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd4) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd4) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd4) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd4");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick5Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd5) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd5");
			ddd.GameSettings.putString(p1Key, "bLd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd5) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd5");
			ddd.GameSettings.putString(p1Key, "bRd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd5");
			ddd.GameSettings.putString(p1Key, "bUd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd5");
			ddd.GameSettings.putString(p1Key, "bDd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld5");
			ddd.GameSettings.putString(p1Key, "bSeld5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd5");
			ddd.GameSettings.putString(p1Key, "bStd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd5");
			ddd.GameSettings.putString(p1Key, "bLTd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd5");
			ddd.GameSettings.putString(p1Key, "bRTd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd5");
			ddd.GameSettings.putString(p1Key, "bLJBd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd5");
			ddd.GameSettings.putString(p1Key, "bRJBd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d5");
			ddd.GameSettings.putString(p1Key, "b_5d5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d5");
			ddd.GameSettings.putString(p1Key, "b_11d5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d5");
			ddd.GameSettings.putString(p1Key, "b_12d5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d5");
			ddd.GameSettings.putString(p1Key, "b_13d5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d5");
			ddd.GameSettings.putString(p1Key, "b_14d5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd5) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd5");
			ddd.GameSettings.putString(p1Key, "LScLd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd5) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd5");
			ddd.GameSettings.putString(p1Key, "LScRd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd5) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd5");
			ddd.GameSettings.putString(p1Key, "LScUd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd5) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd5");
			ddd.GameSettings.putString(p1Key, "LScDd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd5) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd5");
			ddd.GameSettings.putString(p1Key, "RScLd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd5) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd5");
			ddd.GameSettings.putString(p1Key, "RScRd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd5) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd5");
			ddd.GameSettings.putString(p1Key, "RScUd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd5) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd5");
			ddd.GameSettings.putString(p1Key, "RScDd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd5) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd5");
			ddd.GameSettings.putString(p1Key, "bLPd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd5) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd5");
			ddd.GameSettings.putString(p1Key, "bRPd5");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick5Button(String key, String direction, String master, int playerNumber) {
		if (bLd5) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd5) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d5) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd5) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd5) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd5) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd5) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd5) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd5) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd5) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd5) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd5) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd5) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd5");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick6Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd6) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd6");
			ddd.GameSettings.putString(p1Key, "bLd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd6) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd6");
			ddd.GameSettings.putString(p1Key, "bRd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd6");
			ddd.GameSettings.putString(p1Key, "bUd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd6");
			ddd.GameSettings.putString(p1Key, "bDd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld6");
			ddd.GameSettings.putString(p1Key, "bSeld6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd6");
			ddd.GameSettings.putString(p1Key, "bStd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd6");
			ddd.GameSettings.putString(p1Key, "bLTd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd6");
			ddd.GameSettings.putString(p1Key, "bRTd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd6");
			ddd.GameSettings.putString(p1Key, "bLJBd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd6");
			ddd.GameSettings.putString(p1Key, "bRJBd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d6");
			ddd.GameSettings.putString(p1Key, "b_5d6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d6");
			ddd.GameSettings.putString(p1Key, "b_11d6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d6");
			ddd.GameSettings.putString(p1Key, "b_12d6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d6");
			ddd.GameSettings.putString(p1Key, "b_13d6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d6");
			ddd.GameSettings.putString(p1Key, "b_14d6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd6) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd6");
			ddd.GameSettings.putString(p1Key, "LScLd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd6) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd6");
			ddd.GameSettings.putString(p1Key, "LScRd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd6) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd6");
			ddd.GameSettings.putString(p1Key, "LScUd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd6) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd6");
			ddd.GameSettings.putString(p1Key, "LScDd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd6) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd6");
			ddd.GameSettings.putString(p1Key, "RScLd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd6) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd6");
			ddd.GameSettings.putString(p1Key, "RScRd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd6) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd6");
			ddd.GameSettings.putString(p1Key, "RScUd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd6) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd6");
			ddd.GameSettings.putString(p1Key, "RScDd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd6) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd6");
			ddd.GameSettings.putString(p1Key, "bLPd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd6) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd6");
			ddd.GameSettings.putString(p1Key, "bRPd6");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick6Button(String key, String direction, String master, int playerNumber) {
		if (bLd6) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd6) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d6) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd6) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd6) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd6) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd6) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd6) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd6) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd6) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd6) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd6) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd6) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd6");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick7Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd7) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd7");
			ddd.GameSettings.putString(p1Key, "bLd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd7) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd7");
			ddd.GameSettings.putString(p1Key, "bRd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd7");
			ddd.GameSettings.putString(p1Key, "bUd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd7");
			ddd.GameSettings.putString(p1Key, "bDd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld7");
			ddd.GameSettings.putString(p1Key, "bSeld7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd7");
			ddd.GameSettings.putString(p1Key, "bStd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd7");
			ddd.GameSettings.putString(p1Key, "bLTd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd7");
			ddd.GameSettings.putString(p1Key, "bRTd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd7");
			ddd.GameSettings.putString(p1Key, "bLJBd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd7");
			ddd.GameSettings.putString(p1Key, "bRJBd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d7");
			ddd.GameSettings.putString(p1Key, "b_5d7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d7");
			ddd.GameSettings.putString(p1Key, "b_11d7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d7");
			ddd.GameSettings.putString(p1Key, "b_12d7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d7");
			ddd.GameSettings.putString(p1Key, "b_13d7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d7");
			ddd.GameSettings.putString(p1Key, "b_14d7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd7) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd7");
			ddd.GameSettings.putString(p1Key, "LScLd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd7) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd7");
			ddd.GameSettings.putString(p1Key, "LScRd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd7) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd7");
			ddd.GameSettings.putString(p1Key, "LScUd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd7) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd7");
			ddd.GameSettings.putString(p1Key, "LScDd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd7) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd7");
			ddd.GameSettings.putString(p1Key, "RScLd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd7) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd7");
			ddd.GameSettings.putString(p1Key, "RScRd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd7) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd7");
			ddd.GameSettings.putString(p1Key, "RScUd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd7) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd7");
			ddd.GameSettings.putString(p1Key, "RScDd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd7) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd7");
			ddd.GameSettings.putString(p1Key, "bLPd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd7) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd7");
			ddd.GameSettings.putString(p1Key, "bRPd7");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick7Button(String key, String direction, String master, int playerNumber) {
		if (bLd7) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd7) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d7) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd7) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd7) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd7) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd7) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd7) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd7) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd7) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd7) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd7) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd7) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd7");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick8Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd8) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd8");
			ddd.GameSettings.putString(p1Key, "bLd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd8) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd8");
			ddd.GameSettings.putString(p1Key, "bRd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd8");
			ddd.GameSettings.putString(p1Key, "bUd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd8");
			ddd.GameSettings.putString(p1Key, "bDd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld8");
			ddd.GameSettings.putString(p1Key, "bSeld8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd8");
			ddd.GameSettings.putString(p1Key, "bStd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd8");
			ddd.GameSettings.putString(p1Key, "bLTd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd8");
			ddd.GameSettings.putString(p1Key, "bRTd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd8");
			ddd.GameSettings.putString(p1Key, "bLJBd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd8");
			ddd.GameSettings.putString(p1Key, "bRJBd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d8");
			ddd.GameSettings.putString(p1Key, "b_5d8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d8");
			ddd.GameSettings.putString(p1Key, "b_11d8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d8");
			ddd.GameSettings.putString(p1Key, "b_12d8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d8");
			ddd.GameSettings.putString(p1Key, "b_13d8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d8");
			ddd.GameSettings.putString(p1Key, "b_14d8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd8) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd8");
			ddd.GameSettings.putString(p1Key, "LScLd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd8) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd8");
			ddd.GameSettings.putString(p1Key, "LScRd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd8) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd8");
			ddd.GameSettings.putString(p1Key, "LScUd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd8) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd8");
			ddd.GameSettings.putString(p1Key, "LScDd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd8) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd8");
			ddd.GameSettings.putString(p1Key, "RScLd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd8) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd8");
			ddd.GameSettings.putString(p1Key, "RScRd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd8) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd8");
			ddd.GameSettings.putString(p1Key, "RScUd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd8) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd8");
			ddd.GameSettings.putString(p1Key, "RScDd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd8) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd8");
			ddd.GameSettings.putString(p1Key, "bLPd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd8) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd8");
			ddd.GameSettings.putString(p1Key, "bRPd8");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick8Button(String key, String direction, String master, int playerNumber) {
		if (bLd8) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd8) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d8) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd8) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd8) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd8) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd8) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd8) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd8) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd8) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd8) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd8) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd8) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd8");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick9Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd9) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd9");
			ddd.GameSettings.putString(p1Key, "bLd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd9) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd9");
			ddd.GameSettings.putString(p1Key, "bRd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd9");
			ddd.GameSettings.putString(p1Key, "bUd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd9");
			ddd.GameSettings.putString(p1Key, "bDd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld9");
			ddd.GameSettings.putString(p1Key, "bSeld9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd9");
			ddd.GameSettings.putString(p1Key, "bStd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd9");
			ddd.GameSettings.putString(p1Key, "bLTd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd9");
			ddd.GameSettings.putString(p1Key, "bRTd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd9");
			ddd.GameSettings.putString(p1Key, "bLJBd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd9");
			ddd.GameSettings.putString(p1Key, "bRJBd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d9");
			ddd.GameSettings.putString(p1Key, "b_5d9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d9");
			ddd.GameSettings.putString(p1Key, "b_11d9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d9");
			ddd.GameSettings.putString(p1Key, "b_12d9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d9");
			ddd.GameSettings.putString(p1Key, "b_13d9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d9");
			ddd.GameSettings.putString(p1Key, "b_14d9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd9) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd9");
			ddd.GameSettings.putString(p1Key, "LScLd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd9) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd9");
			ddd.GameSettings.putString(p1Key, "LScRd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd9) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd9");
			ddd.GameSettings.putString(p1Key, "LScUd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd9) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd9");
			ddd.GameSettings.putString(p1Key, "LScDd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd9) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd9");
			ddd.GameSettings.putString(p1Key, "RScLd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd9) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd9");
			ddd.GameSettings.putString(p1Key, "RScRd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd9) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd9");
			ddd.GameSettings.putString(p1Key, "RScUd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd9) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd9");
			ddd.GameSettings.putString(p1Key, "RScDd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd9) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd9");
			ddd.GameSettings.putString(p1Key, "bLPd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd9) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd9");
			ddd.GameSettings.putString(p1Key, "bRPd9");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick9Button(String key, String direction, String master, int playerNumber) {
		if (bLd9) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd9) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d9) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd9) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd9) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd9) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd9) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd9) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd9) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd9) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd9) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd9) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd9) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd9");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick10Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd10) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd10");
			ddd.GameSettings.putString(p1Key, "bLd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd10) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd10");
			ddd.GameSettings.putString(p1Key, "bRd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd10");
			ddd.GameSettings.putString(p1Key, "bUd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd10");
			ddd.GameSettings.putString(p1Key, "bDd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld10");
			ddd.GameSettings.putString(p1Key, "bSeld10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd10");
			ddd.GameSettings.putString(p1Key, "bStd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd10");
			ddd.GameSettings.putString(p1Key, "bLTd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd10");
			ddd.GameSettings.putString(p1Key, "bRTd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd10");
			ddd.GameSettings.putString(p1Key, "bLJBd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd10");
			ddd.GameSettings.putString(p1Key, "bRJBd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d10");
			ddd.GameSettings.putString(p1Key, "b_5d10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d10");
			ddd.GameSettings.putString(p1Key, "b_11d10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d10");
			ddd.GameSettings.putString(p1Key, "b_12d10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d10");
			ddd.GameSettings.putString(p1Key, "b_13d10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d10");
			ddd.GameSettings.putString(p1Key, "b_14d10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd10) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd10");
			ddd.GameSettings.putString(p1Key, "LScLd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd10) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd10");
			ddd.GameSettings.putString(p1Key, "LScRd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd10) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd10");
			ddd.GameSettings.putString(p1Key, "LScUd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd10) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd10");
			ddd.GameSettings.putString(p1Key, "LScDd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd10) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd10");
			ddd.GameSettings.putString(p1Key, "RScLd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd10) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd10");
			ddd.GameSettings.putString(p1Key, "RScRd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd10) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd10");
			ddd.GameSettings.putString(p1Key, "RScUd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd10) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd10");
			ddd.GameSettings.putString(p1Key, "RScDd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd10) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd10");
			ddd.GameSettings.putString(p1Key, "bLPd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd10) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd10");
			ddd.GameSettings.putString(p1Key, "bRPd10");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick10Button(String key, String direction, String master, int playerNumber) {
		if (bLd10) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd10) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d10) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd10) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd10) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd10) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd10) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd10) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd10) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd10) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd10) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd10) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd10) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd10");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick11Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd11) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd11");
			ddd.GameSettings.putString(p1Key, "bLd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd11) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd11");
			ddd.GameSettings.putString(p1Key, "bRd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd11");
			ddd.GameSettings.putString(p1Key, "bUd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd11");
			ddd.GameSettings.putString(p1Key, "bDd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld11");
			ddd.GameSettings.putString(p1Key, "bSeld11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd11");
			ddd.GameSettings.putString(p1Key, "bStd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd11");
			ddd.GameSettings.putString(p1Key, "bLTd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd11");
			ddd.GameSettings.putString(p1Key, "bRTd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd11");
			ddd.GameSettings.putString(p1Key, "bLJBd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd11");
			ddd.GameSettings.putString(p1Key, "bRJBd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d11");
			ddd.GameSettings.putString(p1Key, "b_5d11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d11");
			ddd.GameSettings.putString(p1Key, "b_11d11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d11");
			ddd.GameSettings.putString(p1Key, "b_12d11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d11");
			ddd.GameSettings.putString(p1Key, "b_13d11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d11");
			ddd.GameSettings.putString(p1Key, "b_14d11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd11) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd11");
			ddd.GameSettings.putString(p1Key, "LScLd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd11) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd11");
			ddd.GameSettings.putString(p1Key, "LScRd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd11) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd11");
			ddd.GameSettings.putString(p1Key, "LScUd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd11) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd11");
			ddd.GameSettings.putString(p1Key, "LScDd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd11) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd11");
			ddd.GameSettings.putString(p1Key, "RScLd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd11) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd11");
			ddd.GameSettings.putString(p1Key, "RScRd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd11) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd11");
			ddd.GameSettings.putString(p1Key, "RScUd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd11) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd11");
			ddd.GameSettings.putString(p1Key, "RScDd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd11) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd11");
			ddd.GameSettings.putString(p1Key, "bLPd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd11) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd11");
			ddd.GameSettings.putString(p1Key, "bRPd11");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick11Button(String key, String direction, String master, int playerNumber) {
		if (bLd11) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd11) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d11) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd11) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd11) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd11) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd11) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd11) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd11) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd11) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd11) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd11) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd11) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd11");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick12Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd12) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd12");
			ddd.GameSettings.putString(p1Key, "bLd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd12) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd12");
			ddd.GameSettings.putString(p1Key, "bRd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd12");
			ddd.GameSettings.putString(p1Key, "bUd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd12");
			ddd.GameSettings.putString(p1Key, "bDd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld12");
			ddd.GameSettings.putString(p1Key, "bSeld12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd12");
			ddd.GameSettings.putString(p1Key, "bStd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd12");
			ddd.GameSettings.putString(p1Key, "bLTd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd12");
			ddd.GameSettings.putString(p1Key, "bRTd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd12");
			ddd.GameSettings.putString(p1Key, "bLJBd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd12");
			ddd.GameSettings.putString(p1Key, "bRJBd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d12");
			ddd.GameSettings.putString(p1Key, "b_5d12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d12");
			ddd.GameSettings.putString(p1Key, "b_11d12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d12");
			ddd.GameSettings.putString(p1Key, "b_12d12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d12");
			ddd.GameSettings.putString(p1Key, "b_13d12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d12");
			ddd.GameSettings.putString(p1Key, "b_14d12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd12) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd12");
			ddd.GameSettings.putString(p1Key, "LScLd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd12) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd12");
			ddd.GameSettings.putString(p1Key, "LScRd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd12) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd12");
			ddd.GameSettings.putString(p1Key, "LScUd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd12) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd12");
			ddd.GameSettings.putString(p1Key, "LScDd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd12) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd12");
			ddd.GameSettings.putString(p1Key, "RScLd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd12) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd12");
			ddd.GameSettings.putString(p1Key, "RScRd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd12) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd12");
			ddd.GameSettings.putString(p1Key, "RScUd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd12) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd12");
			ddd.GameSettings.putString(p1Key, "RScDd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd12) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd12");
			ddd.GameSettings.putString(p1Key, "bLPd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd12) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd12");
			ddd.GameSettings.putString(p1Key, "bRPd12");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick12Button(String key, String direction, String master, int playerNumber) {
		if (bLd12) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd12) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d12) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd12) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd12) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd12) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd12) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd12) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd12) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd12) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd12) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd12) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd12) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd12");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick13Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd13) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd13");
			ddd.GameSettings.putString(p1Key, "bLd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd13) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd13");
			ddd.GameSettings.putString(p1Key, "bRd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd13");
			ddd.GameSettings.putString(p1Key, "bUd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd13");
			ddd.GameSettings.putString(p1Key, "bDd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld13");
			ddd.GameSettings.putString(p1Key, "bSeld13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd13");
			ddd.GameSettings.putString(p1Key, "bStd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd13");
			ddd.GameSettings.putString(p1Key, "bLTd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd13");
			ddd.GameSettings.putString(p1Key, "bRTd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd13");
			ddd.GameSettings.putString(p1Key, "bLJBd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd13");
			ddd.GameSettings.putString(p1Key, "bRJBd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d13");
			ddd.GameSettings.putString(p1Key, "b_5d13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d13");
			ddd.GameSettings.putString(p1Key, "b_11d13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d13");
			ddd.GameSettings.putString(p1Key, "b_12d13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d13");
			ddd.GameSettings.putString(p1Key, "b_13d13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d13");
			ddd.GameSettings.putString(p1Key, "b_14d13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd13) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd13");
			ddd.GameSettings.putString(p1Key, "LScLd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd13) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd13");
			ddd.GameSettings.putString(p1Key, "LScRd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd13) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd13");
			ddd.GameSettings.putString(p1Key, "LScUd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd13) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd13");
			ddd.GameSettings.putString(p1Key, "LScDd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd13) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd13");
			ddd.GameSettings.putString(p1Key, "RScLd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd13) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd13");
			ddd.GameSettings.putString(p1Key, "RScRd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd13) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd13");
			ddd.GameSettings.putString(p1Key, "RScUd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd13) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd13");
			ddd.GameSettings.putString(p1Key, "RScDd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd13) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd13");
			ddd.GameSettings.putString(p1Key, "bLPd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd13) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd13");
			ddd.GameSettings.putString(p1Key, "bRPd13");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick13Button(String key, String direction, String master, int playerNumber) {
		if (bLd13) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd13) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d13) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd13) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd13) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd13) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd13) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd13) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd13) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd13) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd13) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd13) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd13) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd13");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick14Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd14) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd14");
			ddd.GameSettings.putString(p1Key, "bLd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd14) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd14");
			ddd.GameSettings.putString(p1Key, "bRd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd14");
			ddd.GameSettings.putString(p1Key, "bUd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd14");
			ddd.GameSettings.putString(p1Key, "bDd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld14");
			ddd.GameSettings.putString(p1Key, "bSeld14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd14");
			ddd.GameSettings.putString(p1Key, "bStd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd14");
			ddd.GameSettings.putString(p1Key, "bLTd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd14");
			ddd.GameSettings.putString(p1Key, "bRTd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd14");
			ddd.GameSettings.putString(p1Key, "bLJBd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd14");
			ddd.GameSettings.putString(p1Key, "bRJBd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d14");
			ddd.GameSettings.putString(p1Key, "b_5d14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d14");
			ddd.GameSettings.putString(p1Key, "b_11d14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d14");
			ddd.GameSettings.putString(p1Key, "b_12d14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d14");
			ddd.GameSettings.putString(p1Key, "b_13d14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d14");
			ddd.GameSettings.putString(p1Key, "b_14d14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd14) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd14");
			ddd.GameSettings.putString(p1Key, "LScLd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd14) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd14");
			ddd.GameSettings.putString(p1Key, "LScRd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd14) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd14");
			ddd.GameSettings.putString(p1Key, "LScUd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd14) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd14");
			ddd.GameSettings.putString(p1Key, "LScDd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd14) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd14");
			ddd.GameSettings.putString(p1Key, "RScLd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd14) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd14");
			ddd.GameSettings.putString(p1Key, "RScRd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd14) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd14");
			ddd.GameSettings.putString(p1Key, "RScUd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd14) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd14");
			ddd.GameSettings.putString(p1Key, "RScDd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd14) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd14");
			ddd.GameSettings.putString(p1Key, "bLPd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd14) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd14");
			ddd.GameSettings.putString(p1Key, "bRPd14");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick14Button(String key, String direction, String master, int playerNumber) {
		if (bLd14) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd14) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d14) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd14) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd14) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd14) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd14) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd14) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd14) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd14) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd14) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd14) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd14) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd14");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick15Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd15) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd15");
			ddd.GameSettings.putString(p1Key, "bLd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd15) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd15");
			ddd.GameSettings.putString(p1Key, "bRd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd15");
			ddd.GameSettings.putString(p1Key, "bUd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd15");
			ddd.GameSettings.putString(p1Key, "bDd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld15");
			ddd.GameSettings.putString(p1Key, "bSeld15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd15");
			ddd.GameSettings.putString(p1Key, "bStd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd15");
			ddd.GameSettings.putString(p1Key, "bLTd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd15");
			ddd.GameSettings.putString(p1Key, "bRTd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd15");
			ddd.GameSettings.putString(p1Key, "bLJBd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd15");
			ddd.GameSettings.putString(p1Key, "bRJBd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d15");
			ddd.GameSettings.putString(p1Key, "b_5d15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d15");
			ddd.GameSettings.putString(p1Key, "b_11d15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d15");
			ddd.GameSettings.putString(p1Key, "b_12d15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d15");
			ddd.GameSettings.putString(p1Key, "b_13d15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d15");
			ddd.GameSettings.putString(p1Key, "b_14d15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd15) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd15");
			ddd.GameSettings.putString(p1Key, "LScLd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd15) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd15");
			ddd.GameSettings.putString(p1Key, "LScRd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd15) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd15");
			ddd.GameSettings.putString(p1Key, "LScUd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd15) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd15");
			ddd.GameSettings.putString(p1Key, "LScDd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd15) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd15");
			ddd.GameSettings.putString(p1Key, "RScLd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd15) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd15");
			ddd.GameSettings.putString(p1Key, "RScRd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd15) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd15");
			ddd.GameSettings.putString(p1Key, "RScUd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd15) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd15");
			ddd.GameSettings.putString(p1Key, "RScDd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd15) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd15");
			ddd.GameSettings.putString(p1Key, "bLPd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd15) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd15");
			ddd.GameSettings.putString(p1Key, "bRPd15");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick15Button(String key, String direction, String master, int playerNumber) {
		if (bLd15) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd15) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d15) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd15) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd15) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd15) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd15) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd15) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd15) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd15) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd15) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd15) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd15) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd15");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick16Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd16) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd16");
			ddd.GameSettings.putString(p1Key, "bLd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd16) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd16");
			ddd.GameSettings.putString(p1Key, "bRd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd16");
			ddd.GameSettings.putString(p1Key, "bUd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd16");
			ddd.GameSettings.putString(p1Key, "bDd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld16");
			ddd.GameSettings.putString(p1Key, "bSeld16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd16");
			ddd.GameSettings.putString(p1Key, "bStd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd16");
			ddd.GameSettings.putString(p1Key, "bLTd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd16");
			ddd.GameSettings.putString(p1Key, "bRTd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd16");
			ddd.GameSettings.putString(p1Key, "bLJBd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd16");
			ddd.GameSettings.putString(p1Key, "bRJBd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d16");
			ddd.GameSettings.putString(p1Key, "b_5d16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d16");
			ddd.GameSettings.putString(p1Key, "b_11d16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d16");
			ddd.GameSettings.putString(p1Key, "b_12d16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d16");
			ddd.GameSettings.putString(p1Key, "b_13d16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d16");
			ddd.GameSettings.putString(p1Key, "b_14d16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd16) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd16");
			ddd.GameSettings.putString(p1Key, "LScLd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd16) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd16");
			ddd.GameSettings.putString(p1Key, "LScRd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd16) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd16");
			ddd.GameSettings.putString(p1Key, "LScUd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd16) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd16");
			ddd.GameSettings.putString(p1Key, "LScDd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd16) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd16");
			ddd.GameSettings.putString(p1Key, "RScLd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd16) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd16");
			ddd.GameSettings.putString(p1Key, "RScRd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd16) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd16");
			ddd.GameSettings.putString(p1Key, "RScUd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd16) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd16");
			ddd.GameSettings.putString(p1Key, "RScDd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd16) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd16");
			ddd.GameSettings.putString(p1Key, "bLPd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd16) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd16");
			ddd.GameSettings.putString(p1Key, "bRPd16");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick16Button(String key, String direction, String master, int playerNumber) {
		if (bLd16) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd16) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d16) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd16) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd16) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd16) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd16) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd16) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd16) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd16) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd16) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd16) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd16) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd16");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick17Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd17) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd17");
			ddd.GameSettings.putString(p1Key, "bLd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd17) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd17");
			ddd.GameSettings.putString(p1Key, "bRd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd17");
			ddd.GameSettings.putString(p1Key, "bUd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd17");
			ddd.GameSettings.putString(p1Key, "bDd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld17");
			ddd.GameSettings.putString(p1Key, "bSeld17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd17");
			ddd.GameSettings.putString(p1Key, "bStd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd17");
			ddd.GameSettings.putString(p1Key, "bLTd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd17");
			ddd.GameSettings.putString(p1Key, "bRTd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd17");
			ddd.GameSettings.putString(p1Key, "bLJBd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd17");
			ddd.GameSettings.putString(p1Key, "bRJBd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d17");
			ddd.GameSettings.putString(p1Key, "b_5d17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d17");
			ddd.GameSettings.putString(p1Key, "b_11d17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d17");
			ddd.GameSettings.putString(p1Key, "b_12d17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d17");
			ddd.GameSettings.putString(p1Key, "b_13d17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d17");
			ddd.GameSettings.putString(p1Key, "b_14d17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd17) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd17");
			ddd.GameSettings.putString(p1Key, "LScLd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd17) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd17");
			ddd.GameSettings.putString(p1Key, "LScRd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd17) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd17");
			ddd.GameSettings.putString(p1Key, "LScUd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd17) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd17");
			ddd.GameSettings.putString(p1Key, "LScDd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd17) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd17");
			ddd.GameSettings.putString(p1Key, "RScLd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd17) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd17");
			ddd.GameSettings.putString(p1Key, "RScRd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd17) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd17");
			ddd.GameSettings.putString(p1Key, "RScUd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd17) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd17");
			ddd.GameSettings.putString(p1Key, "RScDd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd17) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd17");
			ddd.GameSettings.putString(p1Key, "bLPd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd17) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd17");
			ddd.GameSettings.putString(p1Key, "bRPd17");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick17Button(String key, String direction, String master, int playerNumber) {
		if (bLd17) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd17) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d17) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd17) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd17) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd17) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd17) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd17) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd17) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd17) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd17) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd17) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd17) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd17");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick18Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd18) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd18");
			ddd.GameSettings.putString(p1Key, "bLd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd18) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd18");
			ddd.GameSettings.putString(p1Key, "bRd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd18");
			ddd.GameSettings.putString(p1Key, "bUd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd18");
			ddd.GameSettings.putString(p1Key, "bDd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld18");
			ddd.GameSettings.putString(p1Key, "bSeld18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd18");
			ddd.GameSettings.putString(p1Key, "bStd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd18");
			ddd.GameSettings.putString(p1Key, "bLTd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd18");
			ddd.GameSettings.putString(p1Key, "bRTd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd18");
			ddd.GameSettings.putString(p1Key, "bLJBd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd18");
			ddd.GameSettings.putString(p1Key, "bRJBd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d18");
			ddd.GameSettings.putString(p1Key, "b_5d18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d18");
			ddd.GameSettings.putString(p1Key, "b_11d18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d18");
			ddd.GameSettings.putString(p1Key, "b_12d18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d18");
			ddd.GameSettings.putString(p1Key, "b_13d18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d18");
			ddd.GameSettings.putString(p1Key, "b_14d18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd18) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd18");
			ddd.GameSettings.putString(p1Key, "LScLd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd18) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd18");
			ddd.GameSettings.putString(p1Key, "LScRd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd18) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd18");
			ddd.GameSettings.putString(p1Key, "LScUd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd18) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd18");
			ddd.GameSettings.putString(p1Key, "LScDd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd18) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd18");
			ddd.GameSettings.putString(p1Key, "RScLd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd18) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd18");
			ddd.GameSettings.putString(p1Key, "RScRd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd18) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd18");
			ddd.GameSettings.putString(p1Key, "RScUd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd18) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd18");
			ddd.GameSettings.putString(p1Key, "RScDd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd18) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd18");
			ddd.GameSettings.putString(p1Key, "bLPd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd18) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd18");
			ddd.GameSettings.putString(p1Key, "bRPd18");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick18Button(String key, String direction, String master, int playerNumber) {
		if (bLd18) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd18) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d18) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd18) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd18) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd18) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd18) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd18) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd18) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd18) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd18) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd18) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd18) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd18");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick19Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd19) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd19");
			ddd.GameSettings.putString(p1Key, "bLd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd19) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd19");
			ddd.GameSettings.putString(p1Key, "bRd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd19");
			ddd.GameSettings.putString(p1Key, "bUd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd19");
			ddd.GameSettings.putString(p1Key, "bDd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld19");
			ddd.GameSettings.putString(p1Key, "bSeld19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd19");
			ddd.GameSettings.putString(p1Key, "bStd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd19");
			ddd.GameSettings.putString(p1Key, "bLTd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd19");
			ddd.GameSettings.putString(p1Key, "bRTd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd19");
			ddd.GameSettings.putString(p1Key, "bLJBd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd19");
			ddd.GameSettings.putString(p1Key, "bRJBd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d19");
			ddd.GameSettings.putString(p1Key, "b_5d19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d19");
			ddd.GameSettings.putString(p1Key, "b_11d19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d19");
			ddd.GameSettings.putString(p1Key, "b_12d19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d19");
			ddd.GameSettings.putString(p1Key, "b_13d19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d19");
			ddd.GameSettings.putString(p1Key, "b_14d19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd19) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd19");
			ddd.GameSettings.putString(p1Key, "LScLd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd19) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd19");
			ddd.GameSettings.putString(p1Key, "LScRd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd19) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd19");
			ddd.GameSettings.putString(p1Key, "LScUd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd19) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd19");
			ddd.GameSettings.putString(p1Key, "LScDd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd19) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd19");
			ddd.GameSettings.putString(p1Key, "RScLd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd19) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd19");
			ddd.GameSettings.putString(p1Key, "RScRd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd19) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd19");
			ddd.GameSettings.putString(p1Key, "RScUd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd19) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd19");
			ddd.GameSettings.putString(p1Key, "RScDd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd19) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd19");
			ddd.GameSettings.putString(p1Key, "bLPd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd19) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd19");
			ddd.GameSettings.putString(p1Key, "bRPd19");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick19Button(String key, String direction, String master, int playerNumber) {
		if (bLd19) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd19) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d19) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd19) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd19) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd19) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd19) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd19) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd19) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd19) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd19) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd19) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd19) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd19");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick20Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd20) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd20");
			ddd.GameSettings.putString(p1Key, "bLd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd20) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd20");
			ddd.GameSettings.putString(p1Key, "bRd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd20");
			ddd.GameSettings.putString(p1Key, "bUd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd20");
			ddd.GameSettings.putString(p1Key, "bDd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld20");
			ddd.GameSettings.putString(p1Key, "bSeld20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd20");
			ddd.GameSettings.putString(p1Key, "bStd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd20");
			ddd.GameSettings.putString(p1Key, "bLTd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd20");
			ddd.GameSettings.putString(p1Key, "bRTd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd20");
			ddd.GameSettings.putString(p1Key, "bLJBd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd20");
			ddd.GameSettings.putString(p1Key, "bRJBd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d20");
			ddd.GameSettings.putString(p1Key, "b_5d20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d20");
			ddd.GameSettings.putString(p1Key, "b_11d20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d20");
			ddd.GameSettings.putString(p1Key, "b_12d20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d20");
			ddd.GameSettings.putString(p1Key, "b_13d20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d20");
			ddd.GameSettings.putString(p1Key, "b_14d20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd20) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd20");
			ddd.GameSettings.putString(p1Key, "LScLd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd20) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd20");
			ddd.GameSettings.putString(p1Key, "LScRd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd20) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd20");
			ddd.GameSettings.putString(p1Key, "LScUd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd20) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd20");
			ddd.GameSettings.putString(p1Key, "LScDd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd20) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd20");
			ddd.GameSettings.putString(p1Key, "RScLd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd20) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd20");
			ddd.GameSettings.putString(p1Key, "RScRd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd20) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd20");
			ddd.GameSettings.putString(p1Key, "RScUd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd20) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd20");
			ddd.GameSettings.putString(p1Key, "RScDd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd20) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd20");
			ddd.GameSettings.putString(p1Key, "bLPd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd20) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd20");
			ddd.GameSettings.putString(p1Key, "bRPd20");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick20Button(String key, String direction, String master, int playerNumber) {
		if (bLd20) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd20) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d20) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd20) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd20) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd20) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd20) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd20) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd20) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd20) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd20) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd20) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd20) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd20");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick21Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd21) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd21");
			ddd.GameSettings.putString(p1Key, "bLd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd21) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd21");
			ddd.GameSettings.putString(p1Key, "bRd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd21");
			ddd.GameSettings.putString(p1Key, "bUd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd21");
			ddd.GameSettings.putString(p1Key, "bDd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld21");
			ddd.GameSettings.putString(p1Key, "bSeld21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd21");
			ddd.GameSettings.putString(p1Key, "bStd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd21");
			ddd.GameSettings.putString(p1Key, "bLTd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd21");
			ddd.GameSettings.putString(p1Key, "bRTd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd21");
			ddd.GameSettings.putString(p1Key, "bLJBd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd21");
			ddd.GameSettings.putString(p1Key, "bRJBd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d21");
			ddd.GameSettings.putString(p1Key, "b_5d21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d21");
			ddd.GameSettings.putString(p1Key, "b_11d21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d21");
			ddd.GameSettings.putString(p1Key, "b_12d21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d21");
			ddd.GameSettings.putString(p1Key, "b_13d21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d21");
			ddd.GameSettings.putString(p1Key, "b_14d21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd21) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd21");
			ddd.GameSettings.putString(p1Key, "LScLd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd21) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd21");
			ddd.GameSettings.putString(p1Key, "LScRd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd21) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd21");
			ddd.GameSettings.putString(p1Key, "LScUd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd21) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd21");
			ddd.GameSettings.putString(p1Key, "LScDd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd21) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd21");
			ddd.GameSettings.putString(p1Key, "RScLd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd21) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd21");
			ddd.GameSettings.putString(p1Key, "RScRd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd21) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd21");
			ddd.GameSettings.putString(p1Key, "RScUd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd21) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd21");
			ddd.GameSettings.putString(p1Key, "RScDd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd21) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd21");
			ddd.GameSettings.putString(p1Key, "bLPd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd21) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd21");
			ddd.GameSettings.putString(p1Key, "bRPd21");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick21Button(String key, String direction, String master, int playerNumber) {
		if (bLd21) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd21) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d21) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd21) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd21) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd21) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd21) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd21) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd21) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd21) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd21) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd21) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd21) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd21");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick22Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd22) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd22");
			ddd.GameSettings.putString(p1Key, "bLd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd22) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd22");
			ddd.GameSettings.putString(p1Key, "bRd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd22");
			ddd.GameSettings.putString(p1Key, "bUd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd22");
			ddd.GameSettings.putString(p1Key, "bDd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld22");
			ddd.GameSettings.putString(p1Key, "bSeld22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd22");
			ddd.GameSettings.putString(p1Key, "bStd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd22");
			ddd.GameSettings.putString(p1Key, "bLTd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd22");
			ddd.GameSettings.putString(p1Key, "bRTd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd22");
			ddd.GameSettings.putString(p1Key, "bLJBd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd22");
			ddd.GameSettings.putString(p1Key, "bRJBd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d22");
			ddd.GameSettings.putString(p1Key, "b_5d22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d22");
			ddd.GameSettings.putString(p1Key, "b_11d22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d22");
			ddd.GameSettings.putString(p1Key, "b_12d22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d22");
			ddd.GameSettings.putString(p1Key, "b_13d22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d22");
			ddd.GameSettings.putString(p1Key, "b_14d22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd22) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd22");
			ddd.GameSettings.putString(p1Key, "LScLd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd22) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd22");
			ddd.GameSettings.putString(p1Key, "LScRd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd22) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd22");
			ddd.GameSettings.putString(p1Key, "LScUd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd22) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd22");
			ddd.GameSettings.putString(p1Key, "LScDd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd22) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd22");
			ddd.GameSettings.putString(p1Key, "RScLd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd22) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd22");
			ddd.GameSettings.putString(p1Key, "RScRd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd22) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd22");
			ddd.GameSettings.putString(p1Key, "RScUd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd22) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd22");
			ddd.GameSettings.putString(p1Key, "RScDd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd22) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd22");
			ddd.GameSettings.putString(p1Key, "bLPd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd22) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd22");
			ddd.GameSettings.putString(p1Key, "bRPd22");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick22Button(String key, String direction, String master, int playerNumber) {
		if (bLd22) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd22) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d22) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd22) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd22) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd22) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd22) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd22) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd22) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd22) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd22) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd22) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd22) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd22");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick23Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd23) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd23");
			ddd.GameSettings.putString(p1Key, "bLd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd23) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd23");
			ddd.GameSettings.putString(p1Key, "bRd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd23");
			ddd.GameSettings.putString(p1Key, "bUd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd23");
			ddd.GameSettings.putString(p1Key, "bDd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld23");
			ddd.GameSettings.putString(p1Key, "bSeld23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd23");
			ddd.GameSettings.putString(p1Key, "bStd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd23");
			ddd.GameSettings.putString(p1Key, "bLTd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd23");
			ddd.GameSettings.putString(p1Key, "bRTd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd23");
			ddd.GameSettings.putString(p1Key, "bLJBd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd23");
			ddd.GameSettings.putString(p1Key, "bRJBd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d23");
			ddd.GameSettings.putString(p1Key, "b_5d23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d23");
			ddd.GameSettings.putString(p1Key, "b_11d23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d23");
			ddd.GameSettings.putString(p1Key, "b_12d23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d23");
			ddd.GameSettings.putString(p1Key, "b_13d23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d23");
			ddd.GameSettings.putString(p1Key, "b_14d23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd23) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd23");
			ddd.GameSettings.putString(p1Key, "LScLd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd23) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd23");
			ddd.GameSettings.putString(p1Key, "LScRd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd23) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd23");
			ddd.GameSettings.putString(p1Key, "LScUd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd23) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd23");
			ddd.GameSettings.putString(p1Key, "LScDd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd23) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd23");
			ddd.GameSettings.putString(p1Key, "RScLd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd23) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd23");
			ddd.GameSettings.putString(p1Key, "RScRd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd23) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd23");
			ddd.GameSettings.putString(p1Key, "RScUd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd23) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd23");
			ddd.GameSettings.putString(p1Key, "RScDd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd23) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd23");
			ddd.GameSettings.putString(p1Key, "bLPd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd23) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd23");
			ddd.GameSettings.putString(p1Key, "bRPd23");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick23Button(String key, String direction, String master, int playerNumber) {
		if (bLd23) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd23) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d23) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd23) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd23) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd23) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd23) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd23) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd23) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd23) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd23) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd23) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd23) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd23");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick24Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd24) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd24");
			ddd.GameSettings.putString(p1Key, "bLd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd24) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd24");
			ddd.GameSettings.putString(p1Key, "bRd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd24");
			ddd.GameSettings.putString(p1Key, "bUd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd24");
			ddd.GameSettings.putString(p1Key, "bDd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld24");
			ddd.GameSettings.putString(p1Key, "bSeld24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd24");
			ddd.GameSettings.putString(p1Key, "bStd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd24");
			ddd.GameSettings.putString(p1Key, "bLTd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd24");
			ddd.GameSettings.putString(p1Key, "bRTd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd24");
			ddd.GameSettings.putString(p1Key, "bLJBd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd24");
			ddd.GameSettings.putString(p1Key, "bRJBd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d24");
			ddd.GameSettings.putString(p1Key, "b_5d24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d24");
			ddd.GameSettings.putString(p1Key, "b_11d24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d24");
			ddd.GameSettings.putString(p1Key, "b_12d24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d24");
			ddd.GameSettings.putString(p1Key, "b_13d24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d24");
			ddd.GameSettings.putString(p1Key, "b_14d24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd24) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd24");
			ddd.GameSettings.putString(p1Key, "LScLd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd24) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd24");
			ddd.GameSettings.putString(p1Key, "LScRd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd24) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd24");
			ddd.GameSettings.putString(p1Key, "LScUd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd24) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd24");
			ddd.GameSettings.putString(p1Key, "LScDd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd24) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd24");
			ddd.GameSettings.putString(p1Key, "RScLd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd24) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd24");
			ddd.GameSettings.putString(p1Key, "RScRd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd24) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd24");
			ddd.GameSettings.putString(p1Key, "RScUd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd24) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd24");
			ddd.GameSettings.putString(p1Key, "RScDd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd24) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd24");
			ddd.GameSettings.putString(p1Key, "bLPd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd24) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd24");
			ddd.GameSettings.putString(p1Key, "bRPd24");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick24Button(String key, String direction, String master, int playerNumber) {
		if (bLd24) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd24) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d24) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd24) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd24) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd24) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd24) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd24) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd24) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd24) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd24) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd24) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd24) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd24");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick25Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd25) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd25");
			ddd.GameSettings.putString(p1Key, "bLd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd25) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd25");
			ddd.GameSettings.putString(p1Key, "bRd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd25");
			ddd.GameSettings.putString(p1Key, "bUd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd25");
			ddd.GameSettings.putString(p1Key, "bDd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld25");
			ddd.GameSettings.putString(p1Key, "bSeld25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd25");
			ddd.GameSettings.putString(p1Key, "bStd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd25");
			ddd.GameSettings.putString(p1Key, "bLTd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd25");
			ddd.GameSettings.putString(p1Key, "bRTd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd25");
			ddd.GameSettings.putString(p1Key, "bLJBd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd25");
			ddd.GameSettings.putString(p1Key, "bRJBd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d25");
			ddd.GameSettings.putString(p1Key, "b_5d25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d25");
			ddd.GameSettings.putString(p1Key, "b_11d25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d25");
			ddd.GameSettings.putString(p1Key, "b_12d25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d25");
			ddd.GameSettings.putString(p1Key, "b_13d25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d25");
			ddd.GameSettings.putString(p1Key, "b_14d25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd25) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd25");
			ddd.GameSettings.putString(p1Key, "LScLd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd25) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd25");
			ddd.GameSettings.putString(p1Key, "LScRd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd25) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd25");
			ddd.GameSettings.putString(p1Key, "LScUd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd25) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd25");
			ddd.GameSettings.putString(p1Key, "LScDd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd25) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd25");
			ddd.GameSettings.putString(p1Key, "RScLd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd25) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd25");
			ddd.GameSettings.putString(p1Key, "RScRd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd25) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd25");
			ddd.GameSettings.putString(p1Key, "RScUd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd25) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd25");
			ddd.GameSettings.putString(p1Key, "RScDd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd25) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd25");
			ddd.GameSettings.putString(p1Key, "bLPd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd25) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd25");
			ddd.GameSettings.putString(p1Key, "bRPd25");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick25Button(String key, String direction, String master, int playerNumber) {
		if (bLd25) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd25) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d25) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd25) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd25) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd25) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd25) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd25) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd25) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd25) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd25) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd25) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd25) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd25");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick26Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd26) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd26");
			ddd.GameSettings.putString(p1Key, "bLd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd26) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd26");
			ddd.GameSettings.putString(p1Key, "bRd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd26");
			ddd.GameSettings.putString(p1Key, "bUd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd26");
			ddd.GameSettings.putString(p1Key, "bDd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld26");
			ddd.GameSettings.putString(p1Key, "bSeld26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd26");
			ddd.GameSettings.putString(p1Key, "bStd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd26");
			ddd.GameSettings.putString(p1Key, "bLTd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd26");
			ddd.GameSettings.putString(p1Key, "bRTd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd26");
			ddd.GameSettings.putString(p1Key, "bLJBd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd26");
			ddd.GameSettings.putString(p1Key, "bRJBd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d26");
			ddd.GameSettings.putString(p1Key, "b_5d26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d26");
			ddd.GameSettings.putString(p1Key, "b_11d26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d26");
			ddd.GameSettings.putString(p1Key, "b_12d26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d26");
			ddd.GameSettings.putString(p1Key, "b_13d26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d26");
			ddd.GameSettings.putString(p1Key, "b_14d26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd26) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd26");
			ddd.GameSettings.putString(p1Key, "LScLd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd26) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd26");
			ddd.GameSettings.putString(p1Key, "LScRd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd26) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd26");
			ddd.GameSettings.putString(p1Key, "LScUd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd26) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd26");
			ddd.GameSettings.putString(p1Key, "LScDd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd26) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd26");
			ddd.GameSettings.putString(p1Key, "RScLd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd26) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd26");
			ddd.GameSettings.putString(p1Key, "RScRd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd26) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd26");
			ddd.GameSettings.putString(p1Key, "RScUd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd26) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd26");
			ddd.GameSettings.putString(p1Key, "RScDd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd26) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd26");
			ddd.GameSettings.putString(p1Key, "bLPd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd26) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd26");
			ddd.GameSettings.putString(p1Key, "bRPd26");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick26Button(String key, String direction, String master, int playerNumber) {
		if (bLd26) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd26) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d26) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd26) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd26) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd26) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd26) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd26) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd26) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd26) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd26) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd26) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd26) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd26");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick27Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd27) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd27");
			ddd.GameSettings.putString(p1Key, "bLd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd27) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd27");
			ddd.GameSettings.putString(p1Key, "bRd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd27");
			ddd.GameSettings.putString(p1Key, "bUd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd27");
			ddd.GameSettings.putString(p1Key, "bDd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld27");
			ddd.GameSettings.putString(p1Key, "bSeld27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd27");
			ddd.GameSettings.putString(p1Key, "bStd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd27");
			ddd.GameSettings.putString(p1Key, "bLTd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd27");
			ddd.GameSettings.putString(p1Key, "bRTd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd27");
			ddd.GameSettings.putString(p1Key, "bLJBd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd27");
			ddd.GameSettings.putString(p1Key, "bRJBd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d27");
			ddd.GameSettings.putString(p1Key, "b_5d27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d27");
			ddd.GameSettings.putString(p1Key, "b_11d27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d27");
			ddd.GameSettings.putString(p1Key, "b_12d27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d27");
			ddd.GameSettings.putString(p1Key, "b_13d27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d27");
			ddd.GameSettings.putString(p1Key, "b_14d27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd27) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd27");
			ddd.GameSettings.putString(p1Key, "LScLd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd27) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd27");
			ddd.GameSettings.putString(p1Key, "LScRd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd27) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd27");
			ddd.GameSettings.putString(p1Key, "LScUd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd27) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd27");
			ddd.GameSettings.putString(p1Key, "LScDd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd27) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd27");
			ddd.GameSettings.putString(p1Key, "RScLd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd27) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd27");
			ddd.GameSettings.putString(p1Key, "RScRd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd27) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd27");
			ddd.GameSettings.putString(p1Key, "RScUd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd27) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd27");
			ddd.GameSettings.putString(p1Key, "RScDd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd27) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd27");
			ddd.GameSettings.putString(p1Key, "bLPd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd27) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd27");
			ddd.GameSettings.putString(p1Key, "bRPd27");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick27Button(String key, String direction, String master, int playerNumber) {
		if (bLd27) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd27) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d27) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd27) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd27) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd27) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd27) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd27) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd27) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd27) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd27) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd27) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd27) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd27");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick28Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd28) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd28");
			ddd.GameSettings.putString(p1Key, "bLd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd28) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd28");
			ddd.GameSettings.putString(p1Key, "bRd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd28");
			ddd.GameSettings.putString(p1Key, "bUd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd28");
			ddd.GameSettings.putString(p1Key, "bDd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld28");
			ddd.GameSettings.putString(p1Key, "bSeld28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd28");
			ddd.GameSettings.putString(p1Key, "bStd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd28");
			ddd.GameSettings.putString(p1Key, "bLTd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd28");
			ddd.GameSettings.putString(p1Key, "bRTd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd28");
			ddd.GameSettings.putString(p1Key, "bLJBd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd28");
			ddd.GameSettings.putString(p1Key, "bRJBd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d28");
			ddd.GameSettings.putString(p1Key, "b_5d28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d28");
			ddd.GameSettings.putString(p1Key, "b_11d28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d28");
			ddd.GameSettings.putString(p1Key, "b_12d28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d28");
			ddd.GameSettings.putString(p1Key, "b_13d28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d28");
			ddd.GameSettings.putString(p1Key, "b_14d28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd28) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd28");
			ddd.GameSettings.putString(p1Key, "LScLd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd28) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd28");
			ddd.GameSettings.putString(p1Key, "LScRd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd28) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd28");
			ddd.GameSettings.putString(p1Key, "LScUd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd28) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd28");
			ddd.GameSettings.putString(p1Key, "LScDd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd28) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd28");
			ddd.GameSettings.putString(p1Key, "RScLd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd28) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd28");
			ddd.GameSettings.putString(p1Key, "RScRd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd28) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd28");
			ddd.GameSettings.putString(p1Key, "RScUd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd28) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd28");
			ddd.GameSettings.putString(p1Key, "RScDd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd28) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd28");
			ddd.GameSettings.putString(p1Key, "bLPd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd28) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd28");
			ddd.GameSettings.putString(p1Key, "bRPd28");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick28Button(String key, String direction, String master, int playerNumber) {
		if (bLd28) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd28) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d28) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd28) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd28) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd28) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd28) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd28) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd28) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd28) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd28) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd28) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd28) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd28");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick29Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd29) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd29");
			ddd.GameSettings.putString(p1Key, "bLd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd29) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd29");
			ddd.GameSettings.putString(p1Key, "bRd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd29");
			ddd.GameSettings.putString(p1Key, "bUd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd29");
			ddd.GameSettings.putString(p1Key, "bDd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld29");
			ddd.GameSettings.putString(p1Key, "bSeld29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd29");
			ddd.GameSettings.putString(p1Key, "bStd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd29");
			ddd.GameSettings.putString(p1Key, "bLTd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd29");
			ddd.GameSettings.putString(p1Key, "bRTd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd29");
			ddd.GameSettings.putString(p1Key, "bLJBd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd29");
			ddd.GameSettings.putString(p1Key, "bRJBd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d29");
			ddd.GameSettings.putString(p1Key, "b_5d29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d29");
			ddd.GameSettings.putString(p1Key, "b_11d29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d29");
			ddd.GameSettings.putString(p1Key, "b_12d29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d29");
			ddd.GameSettings.putString(p1Key, "b_13d29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d29");
			ddd.GameSettings.putString(p1Key, "b_14d29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd29) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd29");
			ddd.GameSettings.putString(p1Key, "LScLd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd29) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd29");
			ddd.GameSettings.putString(p1Key, "LScRd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd29) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd29");
			ddd.GameSettings.putString(p1Key, "LScUd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd29) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd29");
			ddd.GameSettings.putString(p1Key, "LScDd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd29) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd29");
			ddd.GameSettings.putString(p1Key, "RScLd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd29) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd29");
			ddd.GameSettings.putString(p1Key, "RScRd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd29) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd29");
			ddd.GameSettings.putString(p1Key, "RScUd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd29) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd29");
			ddd.GameSettings.putString(p1Key, "RScDd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd29) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd29");
			ddd.GameSettings.putString(p1Key, "bLPd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd29) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd29");
			ddd.GameSettings.putString(p1Key, "bRPd29");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick29Button(String key, String direction, String master, int playerNumber) {
		if (bLd29) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd29) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d29) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd29) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd29) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd29) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd29) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd29) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd29) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd29) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd29) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd29) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd29) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd29");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick30Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd30) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd30");
			ddd.GameSettings.putString(p1Key, "bLd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd30) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd30");
			ddd.GameSettings.putString(p1Key, "bRd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd30");
			ddd.GameSettings.putString(p1Key, "bUd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd30");
			ddd.GameSettings.putString(p1Key, "bDd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld30");
			ddd.GameSettings.putString(p1Key, "bSeld30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd30");
			ddd.GameSettings.putString(p1Key, "bStd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd30");
			ddd.GameSettings.putString(p1Key, "bLTd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd30");
			ddd.GameSettings.putString(p1Key, "bRTd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd30");
			ddd.GameSettings.putString(p1Key, "bLJBd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd30");
			ddd.GameSettings.putString(p1Key, "bRJBd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d30");
			ddd.GameSettings.putString(p1Key, "b_5d30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d30");
			ddd.GameSettings.putString(p1Key, "b_11d30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d30");
			ddd.GameSettings.putString(p1Key, "b_12d30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d30");
			ddd.GameSettings.putString(p1Key, "b_13d30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d30");
			ddd.GameSettings.putString(p1Key, "b_14d30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd30) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd30");
			ddd.GameSettings.putString(p1Key, "LScLd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd30) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd30");
			ddd.GameSettings.putString(p1Key, "LScRd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd30) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd30");
			ddd.GameSettings.putString(p1Key, "LScUd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd30) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd30");
			ddd.GameSettings.putString(p1Key, "LScDd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd30) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd30");
			ddd.GameSettings.putString(p1Key, "RScLd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd30) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd30");
			ddd.GameSettings.putString(p1Key, "RScRd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd30) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd30");
			ddd.GameSettings.putString(p1Key, "RScUd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd30) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd30");
			ddd.GameSettings.putString(p1Key, "RScDd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd30) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd30");
			ddd.GameSettings.putString(p1Key, "bLPd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd30) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd30");
			ddd.GameSettings.putString(p1Key, "bRPd30");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick30Button(String key, String direction, String master, int playerNumber) {
		if (bLd30) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd30) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d30) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd30) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd30) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd30) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd30) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd30) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd30) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd30) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd30) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd30) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd30) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd30");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick31Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd31) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd31");
			ddd.GameSettings.putString(p1Key, "bLd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd31) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd31");
			ddd.GameSettings.putString(p1Key, "bRd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd31");
			ddd.GameSettings.putString(p1Key, "bUd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd31");
			ddd.GameSettings.putString(p1Key, "bDd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld31");
			ddd.GameSettings.putString(p1Key, "bSeld31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd31");
			ddd.GameSettings.putString(p1Key, "bStd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd31");
			ddd.GameSettings.putString(p1Key, "bLTd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd31");
			ddd.GameSettings.putString(p1Key, "bRTd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd31");
			ddd.GameSettings.putString(p1Key, "bLJBd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd31");
			ddd.GameSettings.putString(p1Key, "bRJBd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d31");
			ddd.GameSettings.putString(p1Key, "b_5d31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d31");
			ddd.GameSettings.putString(p1Key, "b_11d31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d31");
			ddd.GameSettings.putString(p1Key, "b_12d31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d31");
			ddd.GameSettings.putString(p1Key, "b_13d31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d31");
			ddd.GameSettings.putString(p1Key, "b_14d31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd31) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd31");
			ddd.GameSettings.putString(p1Key, "LScLd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd31) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd31");
			ddd.GameSettings.putString(p1Key, "LScRd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd31) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd31");
			ddd.GameSettings.putString(p1Key, "LScUd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd31) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd31");
			ddd.GameSettings.putString(p1Key, "LScDd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd31) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd31");
			ddd.GameSettings.putString(p1Key, "RScLd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd31) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd31");
			ddd.GameSettings.putString(p1Key, "RScRd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd31) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd31");
			ddd.GameSettings.putString(p1Key, "RScUd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd31) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd31");
			ddd.GameSettings.putString(p1Key, "RScDd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd31) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd31");
			ddd.GameSettings.putString(p1Key, "bLPd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd31) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd31");
			ddd.GameSettings.putString(p1Key, "bRPd31");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick31Button(String key, String direction, String master, int playerNumber) {
		if (bLd31) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd31) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d31) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd31) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd31) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd31) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd31) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd31) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd31) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd31) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd31) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd31) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd31) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd31");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAPausePersonJoystick32Button(String key, String direction, String master, String p1Key, String p1Direction, String p1Master) {
		if (bLd32) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLd32");
			ddd.GameSettings.putString(p1Key, "bLd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRd32) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRd32");
			ddd.GameSettings.putString(p1Key, "bRd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bUd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bUd32");
			ddd.GameSettings.putString(p1Key, "bUd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bDd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bDd32");
			ddd.GameSettings.putString(p1Key, "bDd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bSeld32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bSeld32");
			ddd.GameSettings.putString(p1Key, "bSeld32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bStd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bStd32");
			ddd.GameSettings.putString(p1Key, "bStd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLTd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLTd32");
			ddd.GameSettings.putString(p1Key, "bLTd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRTd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRTd32");
			ddd.GameSettings.putString(p1Key, "bRTd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLJBd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLJBd32");
			ddd.GameSettings.putString(p1Key, "bLJBd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRJBd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRJBd32");
			ddd.GameSettings.putString(p1Key, "bRJBd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_5d32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_5d32");
			ddd.GameSettings.putString(p1Key, "b_5d32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_11d32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_11d32");
			ddd.GameSettings.putString(p1Key, "b_11d32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_12d32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_12d32");
			ddd.GameSettings.putString(p1Key, "b_12d32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_13d32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_13d32");
			ddd.GameSettings.putString(p1Key, "b_13d32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (b_14d32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "b_14d32");
			ddd.GameSettings.putString(p1Key, "b_14d32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScLd32) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScLd32");
			ddd.GameSettings.putString(p1Key, "LScLd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScRd32) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScRd32");
			ddd.GameSettings.putString(p1Key, "LScRd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScUd32) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScUd32");
			ddd.GameSettings.putString(p1Key, "LScUd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (LScDd32) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "LScDd32");
			ddd.GameSettings.putString(p1Key, "LScDd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScLd32) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScLd32");
			ddd.GameSettings.putString(p1Key, "RScLd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScRd32) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScRd32");
			ddd.GameSettings.putString(p1Key, "RScRd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScUd32) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScUd32");
			ddd.GameSettings.putString(p1Key, "RScUd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (RScDd32) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "RScDd32");
			ddd.GameSettings.putString(p1Key, "RScDd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bLPd32) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bLPd32");
			ddd.GameSettings.putString(p1Key, "bLPd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		} else if (bRPd32) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(p1Direction, p1Master);
			ddd.GameSettings.putString(key, "bRPd32");
			ddd.GameSettings.putString(p1Key, "bRPd32");
			ddd.GameSettings.flush();
			Uinput.LoadDefaultInputs();
			Uinput1.LoadDefaultInputs();
			return true;
		}
		return false;
	}

	private static boolean CheckIfItIsAJoystick32Button(String key, String direction, String master, int playerNumber) {
		if (bLd32) {// Button Left Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRd32) {// Button Right Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bUd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bUd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bDd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bDd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bSeld32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bSeld32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bStd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bStd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLTd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLTd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRTd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRTd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLJBd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLJBd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRJBd32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRJBd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_5d32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_5d32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_11d32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_11d32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_12d32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_12d32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_13d32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_13d32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (b_14d32) {
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "b_14d32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScLd32) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScLd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScRd32) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScRd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScUd32) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScUd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (LScDd32) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "LScDd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScLd32) {// controller Left pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScLd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScRd32) {// controller Right pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScRd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScUd32) {// controller Up Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScUd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (RScDd32) {// controller Down Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "RScDd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bLPd32) {// Button Left Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bLPd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		} else if (bRPd32) {// Button Right Paddle Pressed
			ddd.GameSettings.putString(direction, master);
			ddd.GameSettings.putString(key, "bRPd32");
			ddd.GameSettings.flush();
			LoadRightPlayerNumberInput(playerNumber);
			return true;
		}
		return false;
	}

	private static String CheckJoyButtonToString(String button) {
		String controllerX = "";
		for (int i = 0; i < ControllerOneButtons.length; i++) {
			if (Objects.equals(ControllerOneButtons[i], button))
				controllerX = "controllerOne";
		}
		for (int i = 0; i < ControllerTwoButtons.length; i++) {
			if (Objects.equals(ControllerTwoButtons[i], button)) {
				controllerX = "controllerTwo";
			}
		}
		for (int i = 0; i < ControllerThreeButtons.length; i++) {
			if (Objects.equals(ControllerThreeButtons[i], button)) {
				controllerX = "controllerThree";
			}
		}
		for (int i = 0; i < ControllerFourButtons.length; i++) {
			if (Objects.equals(ControllerFourButtons[i], button)) {
				controllerX = "controllerFour";
			}
		}
		for (int i = 0; i < ControllerFiveButtons.length; i++) {
			if (Objects.equals(ControllerFiveButtons[i], button)) {
				controllerX = "controllerFive";
			}
		}
		for (int i = 0; i < ControllerSixButtons.length; i++) {
			if (Objects.equals(ControllerSixButtons[i], button)) {
				controllerX = "controllerSix";
			}
		}
		for (int i = 0; i < ControllerSevenButtons.length; i++) {
			if (Objects.equals(ControllerSevenButtons[i], button)) {
				controllerX = "controllerSeven";
			}
		}
		for (int i = 0; i < ControllerEightButtons.length; i++) {
			if (Objects.equals(ControllerEightButtons[i], button)) {
				controllerX = "controllerEight";
			}
		}
		for (int i = 0; i < ControllerNineButtons.length; i++) {
			if (Objects.equals(ControllerNineButtons[i], button)) {
				controllerX = "controllerNine";
			}
		}
		for (int i = 0; i < ControllerTenButtons.length; i++) {
			if (Objects.equals(ControllerTenButtons[i], button)) {
				controllerX = "controllerTen";
			}
		}
		for (int i = 0; i < ControllerElevenButtons.length; i++) {
			if (Objects.equals(ControllerElevenButtons[i], button)) {
				controllerX = "controllerEleven";
			}
		}
		for (int i = 0; i < ControllerTwelveButtons.length; i++) {
			if (Objects.equals(ControllerTwelveButtons[i], button)) {
				controllerX = "controllerTwelve";
			}
		}
		for (int i = 0; i < ControllerThirteenButtons.length; i++) {
			if (Objects.equals(ControllerThirteenButtons[i], button)) {
				controllerX = "controllerThirteen";
			}
		}
		for (int i = 0; i < ControllerFourteenButtons.length; i++) {
			if (Objects.equals(ControllerFourteenButtons[i], button)) {
				controllerX = "controllerFourteen";
			}
		}
		for (int i = 0; i < ControllerFifteenButtons.length; i++) {
			if (Objects.equals(ControllerFifteenButtons[i], button)) {
				controllerX = "controllerFifteen";
			}
		}
		for (int i = 0; i < ControllerSixteenButtons.length; i++) {
			if (Objects.equals(ControllerSixteenButtons[i], button)) {
				controllerX = "controllerSixteen";
			}
		}
		for (int i = 0; i < ControllerSeventeenButtons.length; i++) {
			if (Objects.equals(ControllerSeventeenButtons[i], button)) {
				controllerX = "controllerSeventeen";
			}
		}
		for (int i = 0; i < ControllerEighteenButtons.length; i++) {
			if (Objects.equals(ControllerEighteenButtons[i], button)) {
				controllerX = "controllerEighteen";
			}
		}
		for (int i = 0; i < ControllerNineteenButtons.length; i++) {
			if (Objects.equals(ControllerNineteenButtons[i], button)) {
				controllerX = "controllerNineteen";
			}
		}
		for (int i = 0; i < ControllerTwentyButtons.length; i++) {
			if (Objects.equals(ControllerTwentyButtons[i], button)) {
				controllerX = "controllerTwenty";
			}
		}
		for (int i = 0; i < ControllerTwentyOneButtons.length; i++) {
			if (Objects.equals(ControllerTwentyOneButtons[i], button)) {
				controllerX = "controllerTwentyOne";
			}
		}
		for (int i = 0; i < ControllerTwentyTwoButtons.length; i++) {
			if (Objects.equals(ControllerTwentyTwoButtons[i], button)) {
				controllerX = "controllerTwentyTwo";
			}
		}
		for (int i = 0; i < ControllerTwentyThreeButtons.length; i++) {
			if (Objects.equals(ControllerTwentyThreeButtons[i], button)) {
				controllerX = "controllerTwentyThree";
			}
		}
		for (int i = 0; i < ControllerTwentyFourButtons.length; i++) {
			if (Objects.equals(ControllerTwentyFourButtons[i], button)) {
				controllerX = "controllerTwentyFour";
			}
		}
		for (int i = 0; i < ControllerTwentyFiveButtons.length; i++) {
			if (Objects.equals(ControllerTwentyFiveButtons[i], button)) {
				controllerX = "controllerTwentyFive";
			}
		}
		for (int i = 0; i < ControllerTwentySixButtons.length; i++) {
			if (Objects.equals(ControllerTwentySixButtons[i], button)) {
				controllerX = "controllerTwentySix";
			}
		}
		for (int i = 0; i < ControllerTwentySevenButtons.length; i++) {
			if (Objects.equals(ControllerTwentySevenButtons[i], button)) {
				controllerX = "controllerTwentySeven";
			}
		}
		for (int i = 0; i < ControllerTwentyEightButtons.length; i++) {
			if (Objects.equals(ControllerTwentyEightButtons[i], button)) {
				controllerX = "controllerTwentyEight";
			}
		}
		for (int i = 0; i < ControllerTwentyNineButtons.length; i++) {
			if (Objects.equals(ControllerTwentyNineButtons[i], button)) {
				controllerX = "controllerTwentyNine";
			}
		}
		for (int i = 0; i < ControllerThirtyButtons.length; i++) {
			if (Objects.equals(ControllerThirtyButtons[i], button)) {
				controllerX = "controllerThirty";
			}
		}
		for (int i = 0; i < ControllerThirtyOneButtons.length; i++) {
			if (Objects.equals(ControllerThirtyOneButtons[i], button)) {
				controllerX = "controllerThirtyOne";
			}
		}
		for (int i = 0; i < ControllerThirtyTwoButtons.length; i++) {
			if (Objects.equals(ControllerThirtyTwoButtons[i], button)) {
				controllerX = "controllerThirtyTwo";
			}
		}
		return controllerX + " " + button;
	}

	private static String CheckMouseButtonToString(int num) {
		if (num == 0)
			return "Left Mouse Button";
		else if (num == 1)
			return "Right Mouse Button";
		else if (num == 2)
			return "Middle Mouse Button";
		else if (num == 3)
			return "Mouse back Wheel or Button";
		else if (num == 4)
			return "Mouse Forward Wheel or Button";
		else if (num == 5)
			return "Uh, Mouse button 5";
		else if (num == 6)
			return "hey, Mouse button 6";
		else if (num == 7)
			return "what? Mouse button 7";
		else if (num == 8)
			return "whatever, Mouse button 8";
		else if (num == 9)
			return "ok, Mouse button 9";
		else if (num == 10)
			return "please! Mouse button 10";
		else if (num == 11)
			return "you have so many mouse buttons!!! Mouse button 11";
		else if (num == 12)
			return "ppbbfftt. Mouse button 12";
		return "Unknown mouse button you vampire!! WHATISTHIS?: " + num;
	}
}
