From: Sylvain Beucler Date: Sat, 9 Jun 2012 17:29:10 +0000 (+0000) Subject: Add pointers to discussion on multi-touch X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=9136cb5d3f5bb68197de34af01975077d7da83e3;p=freeglut Add pointers to discussion on multi-touch git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1332 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/include/GL/freeglut_ext.h b/include/GL/freeglut_ext.h index 2c71737..0800345 100644 --- a/include/GL/freeglut_ext.h +++ b/include/GL/freeglut_ext.h @@ -182,6 +182,8 @@ FGAPI GLUTproc FGAPIENTRY glutGetProcAddress( const char *procName ); #define GLUT_HAS_MULTI 1 +/* TODO: add device_id paramater, + cf. http://sourceforge.net/mailarchive/forum.php?thread_name=20120518071314.GA28061%40perso.beuc.net&forum_name=freeglut-developer */ FGAPI void FGAPIENTRY glutMultiEntryFunc( void (* callback)( int, int ) ); FGAPI void FGAPIENTRY glutMultiButtonFunc( void (* callback)( int, int, int, int, int ) ); FGAPI void FGAPIENTRY glutMultiMotionFunc( void (* callback)( int, int, int ) ); diff --git a/src/android/fg_main_android.c b/src/android/fg_main_android.c index 37d3a21..84513a6 100644 --- a/src/android/fg_main_android.c +++ b/src/android/fg_main_android.c @@ -228,7 +228,8 @@ int32_t handle_input(struct android_app* app, AInputEvent* event) { int32_t action = AMotionEvent_getAction(event) & AMOTION_EVENT_ACTION_MASK; /* Pointer ID for clicks */ int32_t pidx = AMotionEvent_getAction(event) >> AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT; - /* TODO: Handle multi-touch; also handle multiple sources */ + /* TODO: Handle multi-touch; also handle multiple sources/devices */ + /* cf. http://sourceforge.net/mailarchive/forum.php?thread_name=20120518071314.GA28061%40perso.beuc.net&forum_name=freeglut-developer */ if (0) { LOGI("motion action=%d index=%d source=%d", action, pidx, source); int count = AMotionEvent_getPointerCount(event);