MinieExamples/src/main/java/jme3utilities/minie/test/TargetDemo.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.asCollectGarbage, KeyInput.KEY_G);
        dim.bind("delete selected", KeyInput.KEY_DECIMAL, KeyInput.KEY_DELETE);
        dim.bind("dump selected", KeyInput.KEY_LBRACKET);
        dim.bind(AbstractDemo.asDumpSpace, KeyInput.KEY_O);
        dim.bind(AbstractDemo.asDumpViewport, KeyInput.KEY_P);
        dim.bind("launch", KeyInput.KEY_RETURN, KeyInput.KEY_INSERT,
                KeyInput.KEY_NUMPAD0);
        dim.bind("next field", KeyInput.KEY_NUMPAD2);
        dim.bind("next value", KeyInput.KEY_EQUALS, KeyInput.KEY_NUMPAD6);
        dim.bind("pick", "RMB");
        dim.bind("pick", KeyInput.KEY_R);
        dim.bind("pop selected", KeyInput.KEY_PGUP);
        dim.bind("previous field", KeyInput.KEY_NUMPAD8);
        dim.bind("previous value", KeyInput.KEY_MINUS, KeyInput.KEY_NUMPAD4);
        dim.bind("restart", KeyInput.KEY_NUMPAD5);
        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(AbstractDemo.asToggleAabbs, KeyInput.KEY_APOSTROPHE);
        dim.bind(AbstractDemo.asToggleCcdSpheres, KeyInput.KEY_L);
        dim.bind("toggle childColor", KeyInput.KEY_COMMA);
        dim.bind(AbstractDemo.asToggleGArrows, KeyInput.KEY_J);
        dim.bind(AbstractDemo.asToggleHelp, KeyInput.KEY_H);
        dim.bind(AbstractDemo.asTogglePause, KeyInput.KEY_PAUSE,
                KeyInput.KEY_PERIOD);
        dim.bind(AbstractDemo.asTogglePcoAxes, KeyInput.KEY_SEMICOLON);
        dim.bind(AbstractDemo.asToggleVArrows, KeyInput.KEY_K);
        dim.bind("toggle wireframe", KeyInput.KEY_SLASH);
        /*
         * The help node can't be created until all hotkeys are bound.
         */
        addHelp();
    }
@ Override public void moreDefaultBindings ( ) { InputMode dim = getDefaultInputMode ( ) ; dim . bind ( AbstractDemo . asCollectGarbage , KeyInput . KEY_G ) ; dim . bind ( "delete selected" , KeyInput . KEY_DECIMAL , KeyInput . KEY_DELETE ) ; dim . bind ( "dump selected" , KeyInput . KEY_LBRACKET ) ; dim . bind ( AbstractDemo . asDumpSpace , KeyInput . KEY_O ) ; dim . bind ( AbstractDemo . asDumpViewport , KeyInput . KEY_P ) ; dim . bind ( "launch" , KeyInput . KEY_RETURN , KeyInput . KEY_INSERT , KeyInput . KEY_NUMPAD0 ) ; dim . bind ( "next field" , KeyInput . KEY_NUMPAD2 ) ; dim . bind ( "next value" , KeyInput . KEY_EQUALS , KeyInput . KEY_NUMPAD6 ) ; dim . bind ( "pick" , "RMB" ) ; dim . bind ( "pick" , KeyInput . KEY_R ) ; dim . bind ( "pop selected" , KeyInput . KEY_PGUP ) ; dim . bind ( "previous field" , KeyInput . KEY_NUMPAD8 ) ; dim . bind ( "previous value" , KeyInput . KEY_MINUS , KeyInput . KEY_NUMPAD4 ) ; dim . bind ( "restart" , KeyInput . KEY_NUMPAD5 ) ; 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 ( AbstractDemo . asToggleAabbs , KeyInput . KEY_APOSTROPHE ) ; dim . bind ( AbstractDemo . asToggleCcdSpheres , KeyInput . KEY_L ) ; dim . bind ( "toggle childColor" , KeyInput . KEY_COMMA ) ; dim . bind ( AbstractDemo . asToggleGArrows , KeyInput . KEY_J ) ; dim . bind ( AbstractDemo . asToggleHelp , KeyInput . KEY_H ) ; dim . bind ( AbstractDemo . asTogglePause , KeyInput . KEY_PAUSE , KeyInput . KEY_PERIOD ) ; dim . bind ( AbstractDemo . asTogglePcoAxes , KeyInput . KEY_SEMICOLON ) ; dim . bind ( AbstractDemo . asToggleVArrows , KeyInput . KEY_K ) ; dim . bind ( "toggle wireframe" , KeyInput . KEY_SLASH ) ; /*
         * The help node can't be created until all hotkeys are bound.
         */ addHelp ( ) ; }
Add application-specific hotkey bindings and override existing ones.
Add application - specific hotkey bindings and override existing ones .