public App() { instance = this; players = 0; controllers = new XInputController[4]; controllers[0] = new XInputController(0); controllers[1] = new XInputController(1); controllers[2] = new XInputController(2); controllers[3] = new XInputController(3); xKeyboard = new XKeyboard(); }
public void setPlayer(int i, XKeyboard keyboard) { inGame = false; readied = false; this.keyboard = keyboard; controlSource = ControlSource.keyboard; connected = true; name = NameTextBox.Text; score = 0; canAnswer = false; lastAnswerResult = AnswerResult.no_answer; player = i; setColor(); readiedSound = new MediaPlayer(); }