Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3707324146
@ -107,8 +107,8 @@ public class GamepadInput {
|
|||||||
return new Vector3f(x,y);
|
return new Vector3f(x,y);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getGamepadName(){
|
public int getGamepadName(){
|
||||||
return glfwGetJoystickName(this.gamepadNum);
|
return this.gamepadNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -198,7 +198,6 @@ public class BlueNormals {
|
|||||||
f[0] = standAFrame1();
|
f[0] = standAFrame1();
|
||||||
f[1] = standAFrame1();
|
f[1] = standAFrame1();
|
||||||
f[2] = standAFrame1();
|
f[2] = standAFrame1();
|
||||||
f[3] = standAFrame3();
|
|
||||||
return(new attackPart(f));
|
return(new attackPart(f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -192,13 +192,15 @@ public class match {
|
|||||||
if (glfwJoystickPresent(GLFW_JOYSTICK_1)) {
|
if (glfwJoystickPresent(GLFW_JOYSTICK_1)) {
|
||||||
gamepad1.inputRefresh();
|
gamepad1.inputRefresh();
|
||||||
inputsP1.recordInputsFromGamepad(gamepad1, p1.getPosX() < p2.getPosX());
|
inputsP1.recordInputsFromGamepad(gamepad1, p1.getPosX() < p2.getPosX());
|
||||||
|
handleInputs(p1, inputsP1);
|
||||||
}
|
}
|
||||||
if (glfwJoystickPresent(GLFW_JOYSTICK_2)) {
|
if (glfwJoystickPresent(GLFW_JOYSTICK_2)) {
|
||||||
gamepad2.inputRefresh();
|
gamepad2.inputRefresh();
|
||||||
inputsP2.recordInputsFromGamepad(gamepad2, p2.getPosX() <= p1.getPosX());
|
inputsP2.recordInputsFromGamepad(gamepad2, p2.getPosX() <= p1.getPosX());
|
||||||
}
|
|
||||||
handleInputs(p1, inputsP1);
|
|
||||||
handleInputs(p2, inputsP2);
|
handleInputs(p2, inputsP2);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
acCode = 21;
|
acCode = 21;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user