Is there a way of un-binding the escape key from closing the app? Do I override requestClose? Or maybe an AppSettings key? Or?
Looks like its inputManager.deleteMapping(KEY);
Buuut… where do I get a list of existing keys? (if this is correct)
The default mapping key is:
SIMPLEAPP_Exit
have a look into SimpleApplication and you will see there is a binding named “SIMPLEAPP_Exit”, this must be removed.
Maybe we could add a toString() method to the inputManager that output all the mappings…
Also, maybe in this case some constants on SimpleApp?
Aren’t the bindings being stored as a HashMap or something similar? Wouldn’t there be a getKeys() method?
it’s keySet(), yes, but the map is not visible to avoid any modifications outside of the inputManager.
Constants could be useful yes.
In jME3, the constant is available as SimpleApplication.INPUT_MAPPING_EXIT.
THREAD NECROMANCY MUHAHAHAHAHAHA
@jevon said: In jME3, the constant is available as SimpleApplication.INPUT_MAPPING_EXIT.
Yeah, but a year ago when this necro-thread was still relevant, there wasn’t.
Yup. It’s still the top Google search result though so I thought it’d help future searchers