How do I change the default keyboard controls that jmonkey comes with and how do I remove the mouse controls?
I’m pretty sure these have been answered several times over in the forums, a quick seach reveals :
removing the mouse is an easy one :
Its all in the wiki also, to disable the defaults turn off flycam.
https://jmonkeyengine.github.io/wiki/jme3/advanced/camera.html#flyby-camera
to change keyboard,
https://jmonkeyengine.github.io/wiki/jme3/beginner/hello_input_system.html
https://jmonkeyengine.github.io/wiki/jme3/intermediate/simpleapplication.html#default-input-mappings
https://jmonkeyengine.github.io/wiki/jme3/advanced/input_handling.html
Note that you can disable all “defaults” in the constructor of the class that extends SimpleApplication.
public class Something extends SimpleApplication {
public static void main(String... args) {
Something something = new Something();
something.start();
}
public Something() {
// this line over-rides the defaults and doesn't add any appstates (including the default flycam, etc)
super(new BaseAppState[0]);
// optionally add your own instead..
super(new FlyCamAppstate(), new StatsAppState(), new CustomAppState());
}
}
And thanks to open source, you can see what the default states/mappings are here:
Thanks you all. I finally got it to work.