|
@@ -361,6 +361,7 @@ TIP: Use xref:ROOT:jme3/faq.adoc#how-do-i-switch-between-third-person-and-first-
|
|
TIP: Use `new MouseAxisTrigger(MouseInput.AXIS_WHEEL, true)`
|
|
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?
|
|
. In which situation would it be better to use variables instead of literals for the MouseInput/KeyInput definitions?
|
|
|
|
++
|
|
[source,java]
|
|
[source,java]
|
|
----
|
|
----
|
|
int usersPauseKey = KeyInput.KEY_P;
|
|
int usersPauseKey = KeyInput.KEY_P;
|