Bumped up multitouch rotation event sensitivity

This commit is contained in:
pelya
2012-11-01 18:51:53 +02:00
parent e4cace0d07
commit faba23c35a
2 changed files with 5 additions and 1 deletions

View File

@@ -303,6 +303,9 @@ public class MainActivity extends Activity
downloader.setStatusField(_tv); downloader.setStatusField(_tv);
if( downloader.DownloadComplete ) if( downloader.DownloadComplete )
{ {
initSDL();
/*
// This code does not work
(new Thread(new Runnable() (new Thread(new Runnable()
{ {
public void run() public void run()
@@ -319,6 +322,7 @@ public class MainActivity extends Activity
}); });
} }
})).start(); })).start();
*/
} }
} }
} }

View File

@@ -376,7 +376,7 @@ JAVA_EXPORT_NAME(DemoGLSurfaceView_nativeMotionEvent) ( JNIEnv* env, jobject t
else else
{ {
int distMaxDiff = SDL_ANDROID_sFakeWindowHeight / ( 1 + (1 + multitouchGestureSensitivity) * 2 ); int distMaxDiff = SDL_ANDROID_sFakeWindowHeight / ( 1 + (1 + multitouchGestureSensitivity) * 2 );
int angleMaxDiff = atan2i_PI / ( 1 + (1 + multitouchGestureSensitivity) * 2 ); int angleMaxDiff = atan2i_PI / 2 / ( 1 + (1 + multitouchGestureSensitivity) * 2 );
if( dist - multitouchGestureDist > distMaxDiff ) if( dist - multitouchGestureDist > distMaxDiff )
{ {
multitouchGestureKeyPressed[0] = 1; multitouchGestureKeyPressed[0] = 1;