onGenericMotionEvent not working with NewtBaseActivity
Posted by
Andreas Drewke on
Apr 11, 2014; 11:31am
URL: https://forum.jogamp.org/onGenericMotionEvent-not-working-with-NewtBaseActivity-tp4032165.html
Hallo,
Joysticks are supported in android by overriding "onGenericMotionEvent" in a activity.
public boolean onGenericMotionEvent(final android.view.MotionEvent event)
With my joystick no joystick event was ever fired to my JOGL based activiy, so I could not get this to work and I am not sure where the problem exists.
Its said that one has to set up the focus for the view, but as JOGL doesn't export a view, so I can not do that.
- setFocusable(true);
- setFocusableInTouchMode(true);
see here:
http://forum.unity3d.com/threads/181102-Gamepad-SupportAny ideas?
Thank you!