|
@@ -352,12 +352,12 @@ inputManager.addJoystickConnectionListener(new JoystickConnectionListener() {
|
|
|
== Exercises
|
|
|
|
|
|
. 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. +
|
|
|
-
|
|
|
+. 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)`
|
|
|
|
|
|
. In which situation would it be better to use variables instead of literals for the MouseInput/KeyInput definitions?
|