Disable keybindings

hi there

my application inherits from SimpleGame. Now i added some keybindings but i want to disable the old ones which are set by simple game. how can i do that?


as far as i see there is no simple way to do it.

KeyBindingManager lets you add and remove single keys, but there no no method yet to remove all key bindings at once.

It best if you extend from BaseGame instead SimpleGame and just implement the stuff you actually need in your game.

see also: http://www.jmonkeyengine.com/jmeforum/index.php?topic=9583.0  :slight_smile:

yes thats right but now its to late to change to base game. there would be to much correction necessary in my code.

but then i can lock in the simple game code and remove these bindings which are binded in there?

you should always  have the jme project checked out in your workspace, so you can easily dive into the jme code and see how things work.

But you can of course also take a look at the google svn here: BaseSimpleGame

yes i have the jme project checkout in my workspace :wink: i just want to make sure that this would work :wink: thx

hmm i hope there are no keybindings which are really necessary? for example

  KeyBindingManager.getKeyBindingManager().set( "step",

                KeyInput.KEY_ADD );

sounds something strange. like it would be necessary for the apliction :smiley:

nothing is necessary all keys are set up for debugging and convenience.

if you don't know what it does, you probably don't need it :slight_smile:

thats true :wink:

thx for your hints. its really nice working now.

i have the same problem but when i use


i still possible to pause the game by pressing p. i want to avoid that. how?

Sebastian23 said:


try "toggle_pause"  ;)