Removed a TODO note and added key count implementation (rough for now).
This commit is contained in:
parent
88bf9d4580
commit
b68035570d
@ -64,8 +64,6 @@ public class GlfwJoystickInput implements JoyInput {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Joystick[] loadJoysticks(final InputManager inputManager) {
|
public Joystick[] loadJoysticks(final InputManager inputManager) {
|
||||||
// TODO: Implement
|
|
||||||
|
|
||||||
for (int i = 0; i < GLFW_JOYSTICK_LAST; i++) {
|
for (int i = 0; i < GLFW_JOYSTICK_LAST; i++) {
|
||||||
if (glfwJoystickPresent(i) == GL11.GL_TRUE) {
|
if (glfwJoystickPresent(i) == GL11.GL_TRUE) {
|
||||||
final String name = glfwGetJoystickName(i);
|
final String name = glfwGetJoystickName(i);
|
||||||
|
@ -80,7 +80,8 @@ public class GlfwKeyInput implements KeyInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getKeyCount() {
|
public int getKeyCount() {
|
||||||
return 0; // TODO: How do we figure this out?
|
// This might not be correct
|
||||||
|
return GLFW_KEY_LAST - GLFW_KEY_SPACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void update() {
|
public void update() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user