|
@@ -352,10 +352,6 @@ inputManager.addJoystickConnectionListener(new JoystickConnectionListener() {
|
|
== Exercises
|
|
== Exercises
|
|
|
|
|
|
. Add mappings for moving the player (box) up and down with the H and L keys!
|
|
. Add mappings for moving the player (box) up and down with the H and L keys!
|
|
-. Switch off the flyCam and override the WASD keys.
|
|
|
|
-+
|
|
|
|
-TIP: Use xref:ROOT:jme3/faq.adoc#how-do-i-switch-between-third-person-and-first-person-view[flyCam.setEnabled(false);]
|
|
|
|
-
|
|
|
|
. Modify the mappings so that you can also trigger the up an down motion with the mouse scroll wheel!
|
|
. Modify the mappings so that you can also trigger the up an down motion with the mouse scroll wheel!
|
|
+
|
|
+
|
|
TIP: Use `new MouseAxisTrigger(MouseInput.AXIS_WHEEL, true)`
|
|
TIP: Use `new MouseAxisTrigger(MouseInput.AXIS_WHEEL, true)`
|
|
@@ -369,7 +365,9 @@ int usersPauseKey = KeyInput.KEY_P;
|
|
inputManager.addMapping("Pause", new KeyTrigger(usersPauseKey));
|
|
inputManager.addMapping("Pause", new KeyTrigger(usersPauseKey));
|
|
|
|
|
|
----
|
|
----
|
|
-
|
|
|
|
|
|
+. Switch off the flyCam and override the WASD keys.
|
|
|
|
++
|
|
|
|
+TIP: Use xref:ROOT:jme3/faq.adoc#how-do-i-switch-between-third-person-and-first-person-view[flyCam.setEnabled(false);]
|
|
|
|
|
|
|
|
|
|
[IMPORTANT]
|
|
[IMPORTANT]
|