error correction about inputs in match.java
This commit is contained in:
parent
9dc820b35a
commit
0c8f5743e5
@ -243,7 +243,7 @@ public class match {
|
||||
//read both players inputs
|
||||
case 20:
|
||||
if (glfwJoystickPresent(GLFW_JOYSTICK_1) && glfwJoystickPresent(GLFW_JOYSTICK_2)) {
|
||||
gamepad1 = new GamepadInput(GLFW_JOYSTICK_1);
|
||||
gamepad1 = new GamepadInput(GLFW_JOYSTICK_1);
|
||||
gamepad1.inputRefresh();
|
||||
inputsP1.recordInputsFromGamepad(gamepad1, p1.getPosX() < p2.getPosX());
|
||||
gamepad2 = new GamepadInput(GLFW_JOYSTICK_2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user