[commited] JoystickInputHandler: new method getJoystick()

I want to add a method that returns the joystick of the current JoystickInputHandler.



Here is the patch:


Index: src/com/jme/input/joystick/JoystickInputHandlerDevice.java
===================================================================
--- src/com/jme/input/joystick/JoystickInputHandlerDevice.java   (revision 4766)
+++ src/com/jme/input/joystick/JoystickInputHandlerDevice.java   (working copy)
@@ -169,4 +169,14 @@
             }
         }
     }
+
+    /**
+     * get the joystick of the handler
+     *
+     * @return
+     *          joystick
+     */
+   public Joystick getJoystick() {
+      return joystick;
+   }
 }