@Override protected void cleanup( Application app ) { InputManager inputManager = app.getInputManager(); if( inputManager.hasMapping(INPUT_MAPPING_PROFILER_TOGGLE) ) { inputManager.deleteMapping(INPUT_MAPPING_PROFILER_TOGGLE); } inputManager.removeListener(keyListener); }
@Override protected void cleanup(Application app) { ui.detachAllChildren(); InputManager manager = getApplication().getInputManager(); manager.deleteMapping(TOGGLE_KEY); manager.deleteMapping(CLICK_KEY); manager.removeListener(inputListener); }
/** * Unregister this controller from its input manager. */ public void unregisterInput(){ if (inputManager == null) { return; } for (String s : mappings) { if (inputManager.hasMapping(s)) { inputManager.deleteMapping( s ); } } inputManager.removeListener(this); inputManager.setCursorVisible(!dragToRotate); Joystick[] joysticks = inputManager.getJoysticks(); if (joysticks != null && joysticks.length > 0){ // No way to unassign axis } }
@Override public void cleanup() { super.cleanup(); if (inputManager.hasMapping(INPUT_MAPPING_CAMERA_POS)) inputManager.deleteMapping(INPUT_MAPPING_CAMERA_POS); if (inputManager.hasMapping(INPUT_MAPPING_MEMORY)) inputManager.deleteMapping(INPUT_MAPPING_MEMORY); inputManager.removeListener(keyListener); }
/** * Cleans up the input mappings from the input manager. * Undoes the work of registerWithInput(). * @param inputManager InputManager from which to cleanup mappings. */ public void cleanupWithInput(InputManager mgr){ mgr.deleteMapping(CameraInput.CHASECAM_TOGGLEROTATE); mgr.deleteMapping(CameraInput.CHASECAM_DOWN); mgr.deleteMapping(CameraInput.CHASECAM_UP); mgr.deleteMapping(CameraInput.CHASECAM_MOVELEFT); mgr.deleteMapping(CameraInput.CHASECAM_MOVERIGHT); mgr.deleteMapping(CameraInput.CHASECAM_ZOOMIN); mgr.deleteMapping(CameraInput.CHASECAM_ZOOMOUT); mgr.removeListener(this); }
private void unregisterInput() { for (String s : mappings) { inputManager.deleteMapping(s); } inputManager.removeListener(this); }
private void unregisterInput() { for (String s : mappings) { inputManager.deleteMapping(s); } inputManager.removeListener(this); }
@Override protected void cleanup( Application app ) { InputManager inputManager = app.getInputManager(); if( inputManager.hasMapping(INPUT_MAPPING_PROFILER_TOGGLE) ) { inputManager.deleteMapping(INPUT_MAPPING_PROFILER_TOGGLE); } inputManager.removeListener(keyListener); }
/** * Registers the FlyByCamera to receive input events from the provided * Dispatcher. * @param inputManager */ public void unregisterInput(){ if (inputManager == null) { return; } for (String s : mappings) { if (inputManager.hasMapping(s)) { inputManager.deleteMapping( s ); } } inputManager.removeListener(this); inputManager.setCursorVisible(!dragToRotate); // Joystick[] joysticks = inputManager.getJoysticks(); // if (joysticks != null && joysticks.length > 0){ // Joystick joystick = joysticks[0]; // // // No way to unassing axis // } }
/** * Registers the FlyByCamera to receive input events from the provided * Dispatcher. * @param inputManager */ public void unregisterInput(){ if (inputManager == null) { return; } for (String s : mappings) { if (inputManager.hasMapping(s)) { inputManager.deleteMapping( s ); } } inputManager.removeListener(this); inputManager.setCursorVisible(!dragToRotate); // Joystick[] joysticks = inputManager.getJoysticks(); // if (joysticks != null && joysticks.length > 0){ // Joystick joystick = joysticks[0]; // // // No way to unassing axis // } }
@Override protected void cleanup(Application app) { ui.detachAllChildren(); InputManager manager = getApplication().getInputManager(); manager.deleteMapping(TOGGLE_KEY); manager.deleteMapping(CLICK_KEY); manager.removeListener(inputListener); }
@Override public void cleanup() { super.cleanup(); if (inputManager.hasMapping(INPUT_MAPPING_CAMERA_POS)) inputManager.deleteMapping(INPUT_MAPPING_CAMERA_POS); if (inputManager.hasMapping(INPUT_MAPPING_MEMORY)) inputManager.deleteMapping(INPUT_MAPPING_MEMORY); inputManager.removeListener(keyListener); }
/** * Unregister this controller from its input manager. */ public void unregisterInput(){ if (inputManager == null) { return; } for (String s : mappings) { if (inputManager.hasMapping(s)) { inputManager.deleteMapping( s ); } } inputManager.removeListener(this); inputManager.setCursorVisible(!dragToRotate); Joystick[] joysticks = inputManager.getJoysticks(); if (joysticks != null && joysticks.length > 0){ // No way to unassign axis } }
/** * Cleans up the input mappings from the input manager. * Undoes the work of registerWithInput(). * @param inputManager InputManager from which to cleanup mappings. */ public void cleanupWithInput(InputManager mgr){ mgr.deleteMapping(CameraInput.CHASECAM_TOGGLEROTATE); mgr.deleteMapping(CameraInput.CHASECAM_DOWN); mgr.deleteMapping(CameraInput.CHASECAM_UP); mgr.deleteMapping(CameraInput.CHASECAM_MOVELEFT); mgr.deleteMapping(CameraInput.CHASECAM_MOVERIGHT); mgr.deleteMapping(CameraInput.CHASECAM_ZOOMIN); mgr.deleteMapping(CameraInput.CHASECAM_ZOOMOUT); mgr.removeListener(this); }
@Override public void cleanup() { // Make sure the player is stopped if (player != null) { player.stop(); } // Dispose the movie material if (movieMaterial != null) { movieMaterial.dispose(); } // Detach the canvas if (movieScreen != null) { app.getGuiNode().detachChild(movieScreen); } // Clean our mapping inputManager.deleteMapping(KEY_SKIP); inputManager.removeListener(actionListener); super.cleanup(); } }