This question is perhaps to Quark, maker/porter of the great gamecontrolplus lib I've just started using to recognize an Atari USB joystick = thankyouverymuch!
Nevertheless, I'm making a simple game that is playable either with the joystick attached or the keyboard arrow keys if it's not... however I can't figure out how to ignore the popup 'select device' config feature if the joystick isn't installed when launching. I already have a switch installed to ignore the user input function if it's not plugged in.. but how can I simply start the game without an alternate joystick? Is there an ideal way to stop it??
Basic code I have right now for that part in the setup is:
control = ControlIO.getInstance(this);
stick = control.getMatchedDevice("joystick");
if (stick == null) {
useJoystick = false;
}
Is there a simple code in the lib I've missed to check for js0 being present? The game is being made for specific setup/hardware, so no need for alternates.