mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 15:48:26 -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{
|
public class GLFWController implements Controller{
|
||||||
int jid;
|
int jid;
|
||||||
FloatBuffer axisData;
|
FloatBuffer axisData = FloatBuffer.allocate(8);
|
||||||
ByteBuffer buttonData;
|
ByteBuffer buttonData = ByteBuffer.allocate(8);
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return GLFW.glfwGetJoystickName(jid);
|
return GLFW.glfwGetJoystickName(jid);
|
||||||
@ -57,8 +57,9 @@ public class GLFWController implements Controller{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void poll() {
|
public void poll() {
|
||||||
axisData = GLFW.glfwGetJoystickAxes(jid);
|
|
||||||
buttonData = GLFW.glfwGetJoystickButtons(jid);
|
//axisData = GLFW.glfwGetJoystickAxes(jid);
|
||||||
|
//buttonData = GLFW.glfwGetJoystickButtons(jid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user