MinieExamples/src/main/java/jme3utilities/minie/test/SeJointDemo.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 "add":
                    addSeed();
                    return;
                case "test 6dof":
                    cleanupAfterTest();
                    testName = "6dof";
                    return;
                case "test 6dofSpring":
                    cleanupAfterTest();
                    testName = "6dofSpring";
                    return;
                case "test cone":
                    cleanupAfterTest();
                    testName = "cone";
                    return;
                case "test hinge":
                    cleanupAfterTest();
                    testName = "hinge";
                    return;
                case "test new6dof":
                    cleanupAfterTest();
                    testName = "new6dof";
                    return;
                case "test p2p":
                    cleanupAfterTest();
                    testName = "p2p";
                    return;
                case "test slider":
                    cleanupAfterTest();
                    testName = "slider";
                    return;
                case "toggle view":
                    toggleMeshes();
                    togglePhysicsDebug();
                    return;
            }
        }
        super.onAction(actionString, ongoing, tpf);
    }
@ Override public void onAction ( String actionString , boolean ongoing , float tpf ) { if ( ongoing ) { switch ( actionString ) { case "add" : addSeed ( ) ; return ; case "test 6dof" : cleanupAfterTest ( ) ; testName = "6dof" ; return ; case "test 6dofSpring" : cleanupAfterTest ( ) ; testName = "6dofSpring" ; return ; case "test cone" : cleanupAfterTest ( ) ; testName = "cone" ; return ; case "test hinge" : cleanupAfterTest ( ) ; testName = "hinge" ; return ; case "test new6dof" : cleanupAfterTest ( ) ; testName = "new6dof" ; return ; case "test p2p" : cleanupAfterTest ( ) ; testName = "p2p" ; return ; case "test slider" : cleanupAfterTest ( ) ; testName = "slider" ; return ; case "toggle view" : toggleMeshes ( ) ; togglePhysicsDebug ( ) ; 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 .