In JInput, the comment for net.java.games.input.Controller.
poll() says:
Code:
/**
* Polls axes for data. Returns false if the controller is no longer valid.
In LWJGL's GLFW library, there's
Code:
bool present = org.lwjgl.glfw.GLFW.glfwJoystickPresent(GLFW_JOYSTICK_1) == org.lwjgl.opengl.GL11.GL_TRUE;
[/quote]
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor