
jogamp.newt.driver.android.event.AndroidNewtEventTranslator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jogl-all Show documentation
Show all versions of jogl-all Show documentation
Java™ Binding for the OpenGL® API
package jogamp.newt.driver.android.event;
import jogamp.newt.driver.android.WindowDriver;
import android.view.View;
public class AndroidNewtEventTranslator implements View.OnKeyListener, View.OnTouchListener, View.OnFocusChangeListener, View.OnGenericMotionListener {
private final WindowDriver newtWindow;
private final AndroidNewtEventFactory factory;
public AndroidNewtEventTranslator(WindowDriver newtWindow, android.content.Context context, android.os.Handler handler) {
this.newtWindow = newtWindow;
this.factory = new AndroidNewtEventFactory(context, handler);
}
private final boolean processTouchMotionEvents(View v, android.view.MotionEvent event, boolean isOnTouchEvent) {
final com.jogamp.newt.event.MouseEvent[] newtEvents = factory.createMouseEvents(isOnTouchEvent, event, newtWindow);
if(null != newtEvents) {
newtWindow.focusChanged(false, true);
for(int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy