Sorry no, I understand the input mapping and it works just fine with TestJoystick.java
The issue is that without any code to handle joystick input, the Basic Game template is doing something with the joysticks input somewhere in simpleInitApp()?
When I run the template code with no game pad plugged in the blue cube does what is expected, when I plug in the game pad (no addition code), the cube starts flying around at random. How do I prevent this?
@nrathke said:
Sorry no, I understand the input mapping and it works just fine with TestJoystick.java
The issue is that without any code to handle joystick input, the Basic Game template is doing something with the joysticks input somewhere in simpleInitApp()?
When I run the template code with no game pad plugged in the blue cube does what is expected, when I plug in the game pad (no addition code), the cube starts flying around at random. How do I prevent this?
-nick
If you have joysticks enabled for your app then fly cam will use the joysticks. It must be that one of the x,y axes is uncentered or something and causing the camera to turn.
That’s the thing… joystick is not enabled in my code. There is no input at all at this point that I have written, its very odd.
It only seems to do this on the Basic Game template, if I load TestChaseCamera.java everything work fine even with the game pad plugged in. So there has to be a way to force simpleInitApp() to not use the internal defaults and let the developer override the settings, but I have not figured that out yet.
Though if you want to clear all mappings then that implies that you don’t want the default fly cam at all so you can just remove it or not include. Search for “remove flycam” and I suspect you’ll get 10 to 20 hits or so.