Bumped up multitouch rotation event sensitivity
This commit is contained in:
@@ -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();
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user