mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 23:00:45 -04:00
Update GLFWController.java
This commit is contained in:
parent
00deca3360
commit
2b97ff2f0b
@ -7,8 +7,8 @@ import java.nio.FloatBuffer;
|
||||
|
||||
public class GLFWController implements Controller{
|
||||
int jid;
|
||||
FloatBuffer axisData;
|
||||
ByteBuffer buttonData;
|
||||
FloatBuffer axisData = FloatBuffer.allocate(8);
|
||||
ByteBuffer buttonData = ByteBuffer.allocate(8);
|
||||
@Override
|
||||
public String getName() {
|
||||
return GLFW.glfwGetJoystickName(jid);
|
||||
@ -57,8 +57,9 @@ public class GLFWController implements Controller{
|
||||
|
||||
@Override
|
||||
public void poll() {
|
||||
axisData = GLFW.glfwGetJoystickAxes(jid);
|
||||
buttonData = GLFW.glfwGetJoystickButtons(jid);
|
||||
|
||||
//axisData = GLFW.glfwGetJoystickAxes(jid);
|
||||
//buttonData = GLFW.glfwGetJoystickButtons(jid);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user