Ketai/Processing change/bug?

edited September 2015 in Android Mode

Any Ketai users?

I have Processing 3.0b6 android mode running (yeah), but am getting a new error for a sketch that has been fine up to now. I am guessing this has something to do with whatever changes have been made in android.core?? but don't really know :)

For the code (very stripped back) below, Processing is telling me that the function "surfaceTouchEvent(event)" does not exist.

Is this a Processing bug or a Ketai issue with 3.0b6? And can I fix somehow? Perhaps I need to do something else/additional at the import stage?

import ketai.ui.*;
import android.view.MotionEvent;

KetaiGesture gesture;

void setup() {
}

void draw() {
}

//this callback is copied direct from Rapid Android Development and used to be fine...
public boolean surfaceTouchEvent(MotionEvent event) {
  //call to keep mouseX, mouseY, etc updated
  super.surfaceTouchEvent(event);
  //forward event to class for processing
  return gesture.surfaceTouchEvent(event);
}

Hope someone can help.

Mark

Sign In or Register to comment.