Relaring the cursor

Hey,



i want to put an "m' key in so the simple game will release the cursor so i can go t other windows.



How do i do that in JME?

assign keybindingmanager m with a command like "visible".



in the update method



if(KeyBindingManager.isValidCommand("visible"))
{
    MouseInput.get().setCursorVisible(true);
}



and u can figure out how to switch it each time u press m key. im too lazy :D

setCursorVisible was what i needed. Thanks.