MinieExamples/src/main/java/jme3utilities/minie/test/TrackDemo.java
/**
     * Process an action that wasn't handled by the active input mode.
     *
     * @param actionString textual description of the action (not null)
     * @param ongoing true if the action is ongoing, otherwise false
     * @param tpf time interval between frames (in seconds, &ge;0)
     */
Process an action that wasn't handled by the active input mode.
@param actionString textual description of the action (not null)
@param ongoing true if the action is ongoing, otherwise false
@param tpf time interval between frames (in seconds, ≥0)
Process an action that wasn ' t handled by the active input mode . @param actionString textual description of the action ( not null ) @param ongoing true if the action is ongoing otherwise false @param tpf time interval between frames ( in seconds ≥0 )
@Override
    public void onAction(String actionString, boolean ongoing, float tpf) {
        if (ongoing) {
            switch (actionString) {
                case "toggle meshes":
                    toggleMeshes();
                    return;
                case "toggle skeleton":
                    toggleSkeleton();
                    return;
            }
            String[] words = actionString.split(" ");
            if (words.length == 2 && "load".equals(words[0])) {
                addModel(words[1]);
                return;
            }
        }
        super.onAction(actionString, ongoing, tpf);
    }
@ Override public void onAction ( String actionString , boolean ongoing , float tpf ) { if ( ongoing ) { switch ( actionString ) { case "toggle meshes" : toggleMeshes ( ) ; return ; case "toggle skeleton" : toggleSkeleton ( ) ; return ; } String [ ] words = actionString . split ( " " ) ; if ( words . length == 2 && "load" . equals ( words [ 0 ] ) ) { addModel ( words [ 1 ] ) ; return ; } } super . onAction ( actionString , ongoing , tpf ) ; }
Process an action that wasn't handled by the active input mode.
Process an action that wasn ' t handled by the active input mode .