Only allow explicit main menu requests to bubble up

- Works around existing bugs in various gltouchwidget's logic
This commit is contained in:
Aaron Culliney 2015-05-23 23:17:33 -07:00
parent da0b4c51cf
commit 9e9939a3a6

View File

@ -223,7 +223,9 @@ jboolean Java_org_deadc0de_apple2ix_Apple2Activity_nativeOnTouch(JNIEnv *env, jo
// LOG("\t[%f,%f]", x_coords[i], y_coords[i]);
//}
bool consumed = interface_onTouchEvent(joyaction, pointerCount, pointerIndex, x_coords, y_coords);
interface_onTouchEvent(joyaction, pointerCount, pointerIndex, x_coords, y_coords);
bool consumed = true; // default assume that native can handle touch event (except for explicit request to show main menu)
if (nativeRequestsShowMainMenu) {
nativeRequestsShowMainMenu = false;
consumed = false;