Moved two function calls so they are only called if needed. If the MotionEvent is not from joystick the return values are not needed.