MinieExamples/src/main/java/jme3utilities/minie/test/TestMultiBody.java
/**
     * Add application-specific hotkey bindings and override existing ones.
     */
Add application-specific hotkey bindings and override existing ones.
Add application - specific hotkey bindings and override existing ones .
@Override
    public void moreDefaultBindings() {
        InputMode dim = getDefaultInputMode();
        dim.bind(AbstractDemo.asDumpScenes, KeyInput.KEY_P);
        dim.bind(AbstractDemo.asDumpSpace, KeyInput.KEY_O);
        dim.bindSignal(CameraInput.FLYCAM_LOWER, KeyInput.KEY_DOWN);
        dim.bindSignal(CameraInput.FLYCAM_RISE, KeyInput.KEY_UP);
        dim.bindSignal("orbitLeft", KeyInput.KEY_LEFT);
        dim.bindSignal("orbitRight", KeyInput.KEY_RIGHT);
        dim.bind("test test1", KeyInput.KEY_F1);
        dim.bind(AbstractDemo.asToggleAabbs, KeyInput.KEY_APOSTROPHE);
        dim.bind(AbstractDemo.asToggleHelp, KeyInput.KEY_H);
        dim.bind(AbstractDemo.asTogglePause, KeyInput.KEY_PAUSE,
                KeyInput.KEY_PERIOD);
        dim.bind(AbstractDemo.asTogglePcoAxes, KeyInput.KEY_SEMICOLON);
        float margin = 10f; 
        float width = cam.getWidth() - 2f * margin;
        float height = cam.getHeight() - (2f * margin + 20f);
        float leftX = margin;
        float topY = margin + height;
        Rectangle rectangle = new Rectangle(leftX, topY, width, height);
        attachHelpNode(rectangle);
    }
@ Override public void moreDefaultBindings ( ) { InputMode dim = getDefaultInputMode ( ) ; dim . bind ( AbstractDemo . asDumpScenes , KeyInput . KEY_P ) ; dim . bind ( AbstractDemo . asDumpSpace , KeyInput . KEY_O ) ; dim . bindSignal ( CameraInput . FLYCAM_LOWER , KeyInput . KEY_DOWN ) ; dim . bindSignal ( CameraInput . FLYCAM_RISE , KeyInput . KEY_UP ) ; dim . bindSignal ( "orbitLeft" , KeyInput . KEY_LEFT ) ; dim . bindSignal ( "orbitRight" , KeyInput . KEY_RIGHT ) ; dim . bind ( "test test1" , KeyInput . KEY_F1 ) ; dim . bind ( AbstractDemo . asToggleAabbs , KeyInput . KEY_APOSTROPHE ) ; dim . bind ( AbstractDemo . asToggleHelp , KeyInput . KEY_H ) ; dim . bind ( AbstractDemo . asTogglePause , KeyInput . KEY_PAUSE , KeyInput . KEY_PERIOD ) ; dim . bind ( AbstractDemo . asTogglePcoAxes , KeyInput . KEY_SEMICOLON ) ; float margin = 10f ; float width = cam . getWidth ( ) - 2f * margin ; float height = cam . getHeight ( ) - ( 2f * margin + 20f ) ; float leftX = margin ; float topY = margin + height ; Rectangle rectangle = new Rectangle ( leftX , topY , width , height ) ; attachHelpNode ( rectangle ) ; }
Add application-specific hotkey bindings and override existing ones.
Add application - specific hotkey bindings and override existing ones .
// in pixels
