/external/jmonkeyengine/engine/src/test/jme3test/input/ |
TestJoystick.java | 22 Joystick[] joysticks = inputManager.getJoysticks(); 30 inputManager.addMapping("DPAD Left", new JoyAxisTrigger(0, JoyInput.AXIS_POV_X, true)); 31 inputManager.addMapping("DPAD Right", new JoyAxisTrigger(0, JoyInput.AXIS_POV_X, false)); 32 inputManager.addMapping("DPAD Down", new JoyAxisTrigger(0, JoyInput.AXIS_POV_Y, true)); 33 inputManager.addMapping("DPAD Up", new JoyAxisTrigger(0, JoyInput.AXIS_POV_Y, false)); 34 inputManager.addListener(this, "DPAD Left", "DPAD Right", "DPAD Down", "DPAD Up"); 36 inputManager.addMapping("Joy Left", new JoyAxisTrigger(0, 0, true)); 37 inputManager.addMapping("Joy Right", new JoyAxisTrigger(0, 0, false)); 38 inputManager.addMapping("Joy Down", new JoyAxisTrigger(0, 1, true)); 39 inputManager.addMapping("Joy Up", new JoyAxisTrigger(0, 1, false)) [all...] |
TestChaseCamera.java | 78 chaseCam = new ChaseCamera(cam, teaGeom, inputManager); 110 inputManager.addMapping("moveForward", new KeyTrigger(keyInput.KEY_UP), new KeyTrigger(keyInput.KEY_W)); 111 inputManager.addMapping("moveBackward", new KeyTrigger(keyInput.KEY_DOWN), new KeyTrigger(keyInput.KEY_S)); 112 inputManager.addMapping("moveRight", new KeyTrigger(keyInput.KEY_RIGHT), new KeyTrigger(keyInput.KEY_D)); 113 inputManager.addMapping("moveLeft", new KeyTrigger(keyInput.KEY_LEFT), new KeyTrigger(keyInput.KEY_A)); 114 inputManager.addMapping("displayPosition", new KeyTrigger(keyInput.KEY_P)); 115 inputManager.addListener(this, "moveForward", "moveBackward", "moveRight", "moveLeft"); 116 inputManager.addListener(this, "displayPosition");
|
TestCameraNode.java | 102 inputManager.addMapping("moveForward", new KeyTrigger(keyInput.KEY_UP), new KeyTrigger(keyInput.KEY_W)); 103 inputManager.addMapping("moveBackward", new KeyTrigger(keyInput.KEY_DOWN), new KeyTrigger(keyInput.KEY_S)); 104 inputManager.addMapping("moveRight", new KeyTrigger(keyInput.KEY_RIGHT), new KeyTrigger(keyInput.KEY_D)); 105 inputManager.addMapping("moveLeft", new KeyTrigger(keyInput.KEY_LEFT), new KeyTrigger(keyInput.KEY_A)); 106 inputManager.addMapping("toggleRotate", new MouseButtonTrigger(MouseInput.BUTTON_LEFT)); 107 inputManager.addMapping("rotateRight", new MouseAxisTrigger(MouseInput.AXIS_X, true)); 108 inputManager.addMapping("rotateLeft", new MouseAxisTrigger(MouseInput.AXIS_X, false)); 109 inputManager.addListener(this, "moveForward", "moveBackward", "moveRight", "moveLeft"); 110 inputManager.addListener(this, "rotateRight", "rotateLeft", "toggleRotate"); 145 inputManager.setCursorVisible(false) [all...] |
TestControls.java | 64 inputManager.addMapping("My Action", 69 inputManager.addListener(actionListener, "My Action"); 70 inputManager.addListener(analogListener, "My Action");
|
/external/jmonkeyengine/engine/src/core/com/jme3/input/ |
JoyInput.java | 62 * @param inputManager The input manager requesting to load joysticks 65 public Joystick[] loadJoysticks(InputManager inputManager);
|
FlyByCamera.java | 83 protected InputManager inputManager;
127 if (inputManager!= null && (!dragToRotate || (dragToRotate && canRotate))){
128 inputManager.setCursorVisible(true);
164 if (inputManager != null) {
165 inputManager.setCursorVisible(dragToRotate);
172 * @param inputManager
174 public void registerWithInput(InputManager inputManager){
175 this.inputManager = inputManager; [all...] |
Joystick.java | 13 private InputManager inputManager; 24 public Joystick(InputManager inputManager, JoyInput joyInput, 27 this.inputManager = inputManager; 60 inputManager.addMapping(mappingName, new JoyButtonTrigger(joyId, buttonId)); 73 inputManager.addMapping(positiveMapping, new JoyAxisTrigger(joyId, axisId, false)); 74 inputManager.addMapping(negativeMapping, new JoyAxisTrigger(joyId, axisId, true));
|
ChaseCamera.java | 76 protected InputManager inputManager;
136 * @param inputManager the inputManager of the application to register inputs
138 public ChaseCamera(Camera cam, InputManager inputManager) {
140 registerWithInput(inputManager);
147 * @param inputManager the inputManager of the application to register inputs
149 public ChaseCamera(Camera cam, final Spatial target, InputManager inputManager) { [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/app/ |
DebugKeysAppState.java | 36 import com.jme3.input.InputManager; 59 private InputManager inputManager; 69 this.inputManager = app.getInputManager(); 73 inputManager.addMapping(INPUT_MAPPING_CAMERA_POS, new KeyTrigger(KeyInput.KEY_C)); 74 inputManager.addMapping(INPUT_MAPPING_MEMORY, new KeyTrigger(KeyInput.KEY_M)); 76 inputManager.addListener(keyListener, 86 if (inputManager.hasMapping(INPUT_MAPPING_CAMERA_POS)) 87 inputManager.deleteMapping(INPUT_MAPPING_CAMERA_POS); 88 if (inputManager.hasMapping(INPUT_MAPPING_MEMORY) [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/post/ |
SSAOUI.java | 34 import com.jme3.input.InputManager; 49 public SSAOUI(InputManager inputManager, SSAOFilter filter) { 51 init(inputManager); 54 private void init(InputManager inputManager) { 65 inputManager.addMapping("sampleRadiusUp", new KeyTrigger(KeyInput.KEY_Y)); 66 inputManager.addMapping("sampleRadiusDown", new KeyTrigger(KeyInput.KEY_H)); 67 inputManager.addMapping("intensityUp", new KeyTrigger(KeyInput.KEY_U)); 68 inputManager.addMapping("intensityDown", new KeyTrigger(KeyInput.KEY_J)) [all...] |
BloomUI.java | 34 import com.jme3.input.InputManager; 46 public BloomUI(InputManager inputManager, final BloomFilter filter) { 55 inputManager.addMapping("blurScaleUp", new KeyTrigger(KeyInput.KEY_Y)); 56 inputManager.addMapping("blurScaleDown", new KeyTrigger(KeyInput.KEY_H)); 57 inputManager.addMapping("exposurePowerUp", new KeyTrigger(KeyInput.KEY_U)); 58 inputManager.addMapping("exposurePowerDown", new KeyTrigger(KeyInput.KEY_J)); 59 inputManager.addMapping("exposureCutOffUp", new KeyTrigger(KeyInput.KEY_I)); 60 inputManager.addMapping("exposureCutOffDown", new KeyTrigger(KeyInput.KEY_K)); 61 inputManager.addMapping("bloomIntensityUp", new KeyTrigger(KeyInput.KEY_O)) [all...] |
LightScatteringUI.java | 35 import com.jme3.input.InputManager; 48 public LightScatteringUI(InputManager inputManager, LightScatteringFilter proc) { 62 inputManager.addMapping("sampleUp", new KeyTrigger(KeyInput.KEY_Y)); 63 inputManager.addMapping("sampleDown", new KeyTrigger(KeyInput.KEY_H)); 64 inputManager.addMapping("blurStartUp", new KeyTrigger(KeyInput.KEY_U)); 65 inputManager.addMapping("blurStartDown", new KeyTrigger(KeyInput.KEY_J)); 66 inputManager.addMapping("blurWidthUp", new KeyTrigger(KeyInput.KEY_I)); 67 inputManager.addMapping("blurWidthDown", new KeyTrigger(KeyInput.KEY_K)); 68 inputManager.addMapping("lightDensityUp", new KeyTrigger(KeyInput.KEY_O)) [all...] |
TestFog.java | 111 inputManager.addMapping("toggle", new KeyTrigger(KeyInput.KEY_SPACE)); 112 inputManager.addMapping("DensityUp", new KeyTrigger(KeyInput.KEY_Y)); 113 inputManager.addMapping("DensityDown", new KeyTrigger(KeyInput.KEY_H)); 114 inputManager.addMapping("DistanceUp", new KeyTrigger(KeyInput.KEY_U)); 115 inputManager.addMapping("DistanceDown", new KeyTrigger(KeyInput.KEY_J)); 157 inputManager.addListener(acl, "toggle"); 158 inputManager.addListener(anl, "DensityUp","DensityDown","DistanceUp","DistanceDown");
|
/external/jmonkeyengine/engine/src/test/jme3test/water/ |
WaterUI.java | 35 import com.jme3.input.InputManager; 47 public WaterUI(InputManager inputManager, SimpleWaterProcessor proc) { 61 inputManager.addMapping("transparencyUp", new KeyTrigger(KeyInput.KEY_Y)); 62 inputManager.addMapping("transparencyDown", new KeyTrigger(KeyInput.KEY_H)); 63 inputManager.addMapping("depthUp", new KeyTrigger(KeyInput.KEY_U)); 64 inputManager.addMapping("depthDown", new KeyTrigger(KeyInput.KEY_J)); 65 // inputManager.addMapping("scaleUp", new KeyTrigger(KeyInput.KEY_I)); 66 // inputManager.addMapping("scaleDown", new KeyTrigger(KeyInput.KEY_K)); 67 // inputManager.addMapping("biasUp", new KeyTrigger(KeyInput.KEY_O)) [all...] |
TestSimpleWater.java | 120 inputManager.addMapping("use_water", new KeyTrigger(KeyInput.KEY_O)); 121 inputManager.addListener(this, "use_water"); 122 inputManager.addMapping("lightup", new KeyTrigger(KeyInput.KEY_T)); 123 inputManager.addListener(this, "lightup"); 124 inputManager.addMapping("lightdown", new KeyTrigger(KeyInput.KEY_G)); 125 inputManager.addListener(this, "lightdown"); 126 inputManager.addMapping("lightleft", new KeyTrigger(KeyInput.KEY_H)); 127 inputManager.addListener(this, "lightleft"); 128 inputManager.addMapping("lightright", new KeyTrigger(KeyInput.KEY_K)); 129 inputManager.addListener(this, "lightright") [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/bullet/ |
TestQ3.java | 141 inputManager.addMapping("Lefts", new KeyTrigger(KeyInput.KEY_A)); 142 inputManager.addMapping("Rights", new KeyTrigger(KeyInput.KEY_D)); 143 inputManager.addMapping("Ups", new KeyTrigger(KeyInput.KEY_W)); 144 inputManager.addMapping("Downs", new KeyTrigger(KeyInput.KEY_S)); 145 inputManager.addMapping("Space", new KeyTrigger(KeyInput.KEY_SPACE)); 146 inputManager.addListener(this,"Lefts"); 147 inputManager.addListener(this,"Rights"); 148 inputManager.addListener(this,"Ups"); 149 inputManager.addListener(this,"Downs"); 150 inputManager.addListener(this,"Space") [all...] |
TestPhysicsCar.java | 83 inputManager.addMapping("Lefts", new KeyTrigger(KeyInput.KEY_H)); 84 inputManager.addMapping("Rights", new KeyTrigger(KeyInput.KEY_K)); 85 inputManager.addMapping("Ups", new KeyTrigger(KeyInput.KEY_U)); 86 inputManager.addMapping("Downs", new KeyTrigger(KeyInput.KEY_J)); 87 inputManager.addMapping("Space", new KeyTrigger(KeyInput.KEY_SPACE)); 88 inputManager.addMapping("Reset", new KeyTrigger(KeyInput.KEY_RETURN)); 89 inputManager.addListener(this, "Lefts"); 90 inputManager.addListener(this, "Rights"); 91 inputManager.addListener(this, "Ups"); 92 inputManager.addListener(this, "Downs") [all...] |
TestPhysicsCharacter.java | 66 inputManager.addMapping("Strafe Left",
69 inputManager.addMapping("Strafe Right",
72 inputManager.addMapping("Rotate Left",
75 inputManager.addMapping("Rotate Right",
78 inputManager.addMapping("Walk Forward",
81 inputManager.addMapping("Walk Backward",
84 inputManager.addMapping("Jump",
87 inputManager.addMapping("Shoot",
89 inputManager.addListener(this, "Strafe Left", "Strafe Right");
90 inputManager.addListener(this, "Rotate Left", "Rotate Right"); [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/helloworld/ |
HelloCollision.java | 131 inputManager.addMapping("Left", new KeyTrigger(KeyInput.KEY_A)); 132 inputManager.addMapping("Right", new KeyTrigger(KeyInput.KEY_D)); 133 inputManager.addMapping("Up", new KeyTrigger(KeyInput.KEY_W)); 134 inputManager.addMapping("Down", new KeyTrigger(KeyInput.KEY_S)); 135 inputManager.addMapping("Jump", new KeyTrigger(KeyInput.KEY_SPACE)); 136 inputManager.addListener(this, "Left"); 137 inputManager.addListener(this, "Right"); 138 inputManager.addListener(this, "Up"); 139 inputManager.addListener(this, "Down"); 140 inputManager.addListener(this, "Jump") [all...] |
HelloInput.java | 72 inputManager.addMapping("Pause", new KeyTrigger(keyInput.KEY_P));
73 inputManager.addMapping("Left", new KeyTrigger(KeyInput.KEY_J));
74 inputManager.addMapping("Right", new KeyTrigger(KeyInput.KEY_K));
75 inputManager.addMapping("Rotate", new KeyTrigger(KeyInput.KEY_SPACE), // spacebar!
78 inputManager.addListener(actionListener, new String[]{"Pause"});
79 inputManager.addListener(analogListener, new String[]{"Left", "Right", "Rotate"});
|
HelloTerrainCollision.java | 176 inputManager.addMapping("Left", new KeyTrigger(KeyInput.KEY_A)); 177 inputManager.addMapping("Right", new KeyTrigger(KeyInput.KEY_D)); 178 inputManager.addMapping("Up", new KeyTrigger(KeyInput.KEY_W)); 179 inputManager.addMapping("Down", new KeyTrigger(KeyInput.KEY_S)); 180 inputManager.addMapping("Jump", new KeyTrigger(KeyInput.KEY_SPACE)); 181 inputManager.addListener(this, "Left"); 182 inputManager.addListener(this, "Right"); 183 inputManager.addListener(this, "Up"); 184 inputManager.addListener(this, "Down"); 185 inputManager.addListener(this, "Jump") [all...] |
/external/jmonkeyengine/engine/src/android/jme3test/android/ |
SimpleSoundTest.java | 28 inputManager.addMapping("click", new MouseButtonTrigger(MouseInput.BUTTON_LEFT));
29 inputManager.addListener(this, "click");
|
/external/jmonkeyengine/engine/src/test/jme3test/renderer/ |
TestParallelProjection.java | 68 inputManager.addListener(this, "Size+", "Size-"); 69 inputManager.addMapping("Size+", new KeyTrigger(KeyInput.KEY_W)); 70 inputManager.addMapping("Size-", new KeyTrigger(KeyInput.KEY_S));
|
/external/jmonkeyengine/engine/src/test/jme3test/collision/ |
TestTriangleCollision.java | 84 inputManager.addMapping("MoveRight", new KeyTrigger(KeyInput.KEY_L)); 85 inputManager.addMapping("MoveLeft", new KeyTrigger(KeyInput.KEY_J)); 86 inputManager.addMapping("MoveUp", new KeyTrigger(KeyInput.KEY_I)); 87 inputManager.addMapping("MoveDown", new KeyTrigger(KeyInput.KEY_K)); 89 inputManager.addListener(analogListener, new String[]{
|
/external/jmonkeyengine/engine/src/test/jme3test/terrain/ |
TerrainTestCollision.java | 207 inputManager.addMapping("wireframe", new KeyTrigger(KeyInput.KEY_T)); 208 inputManager.addListener(actionListener, "wireframe"); 209 inputManager.addMapping("Lefts", new KeyTrigger(KeyInput.KEY_H)); 210 inputManager.addMapping("Rights", new KeyTrigger(KeyInput.KEY_K)); 211 inputManager.addMapping("Ups", new KeyTrigger(KeyInput.KEY_U)); 212 inputManager.addMapping("Downs", new KeyTrigger(KeyInput.KEY_J)); 213 inputManager.addMapping("Forwards", new KeyTrigger(KeyInput.KEY_Y)); 214 inputManager.addMapping("Backs", new KeyTrigger(KeyInput.KEY_I)); 215 inputManager.addListener(actionListener, "Lefts"); 216 inputManager.addListener(actionListener, "Rights") [all...] |