From d696dabdaa03aa12ea1064ca61d459d5fb5f95ba Mon Sep 17 00:00:00 2001 From: beuc Date: Sat, 5 May 2012 11:32:05 +0000 Subject: [PATCH] Update documentation on MultiTouch git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1308 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/web-src/docs/android.php | 7 +++++-- freeglut/web-src/docs/api.php | 31 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/freeglut/web-src/docs/android.php b/freeglut/web-src/docs/android.php index 283e25d..b4d9cc5 100644 --- a/freeglut/web-src/docs/android.php +++ b/freeglut/web-src/docs/android.php @@ -173,8 +173,7 @@ Done: TODO: Possibly implemented later: diff --git a/freeglut/web-src/docs/api.php b/freeglut/web-src/docs/api.php index 47c6676..dd7f9ee 100644 --- a/freeglut/web-src/docs/api.php +++ b/freeglut/web-src/docs/api.php @@ -209,6 +209,14 @@ contained herein.
  • glutCopyColormap
  • +
  • MultiTouch Functions +
      +
    1. glutMultiEntryFunc(id, GLUT_ENTERED|GLUT_LEFT)
    2. +
    3. glutMultiButtonFunc(id, x, y, button, GLUT_DOWN|GLUT_UP)
    4. +
    5. glutMultiMotionFunc(id, x, y)
    6. +
    7. glutMultiPassiveFunc(id, x, y)
    8. +
    +
  • Miscellaneous Functions
    1. glutIgnoreKeyRepeat, glutSetKeyRepeat
    2. @@ -2134,6 +2142,29 @@ glutStopVideoResizing

      18.2 glutCopyColormap

      +

      MultiTouch Functions

      + +MultiTouch callbacks are used to handle environments with multiple +inputs, such as a multi-touch touchpad.
      + +TODO: it seems this supports multiple mouses on X11 +(id=XIDeviceEvent->deviceid), as opposed to multiple +contact points on Windows (id=TOUCHINPUT->id). + +

      glutMultiEntryFunc(id, GLUT_ENTERED|GLUT_LEFT)

      +

      glutMultiButtonFunc(id, x, y, button, GLUT_DOWN|GLUT_UP)

      +

      glutMultiMotionFunc(id, x, y)

      +

      glutMultiPassiveFunc(id, x, y)

      + +These functions work like their non-multi variants, with an additional +'deviceid' parameter describing the current input device.
      + +Exception: in MultiButtonFunc, the order of callback parameters is +different (x,y,button,state instead of button,state,x,y).
      + +The non-multi callback variants are also called on X11.
      +TODO: are both callbacks called on Windows as well? +

      19. Miscellaneous Functions

      19.1 glutIgnoreKeyRepeat, glutSetKeyRepeat