From 66fb02ae56bf5aa4ffbfa6299dee8982818c9bd2 Mon Sep 17 00:00:00 2001 From: beuc Date: Sat, 5 May 2012 12:49:32 +0000 Subject: [PATCH] More documentation on MultiTouch git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1309 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/web-src/docs/api.php | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/freeglut/web-src/docs/api.php b/freeglut/web-src/docs/api.php index dd7f9ee..697cedf 100644 --- a/freeglut/web-src/docs/api.php +++ b/freeglut/web-src/docs/api.php @@ -2145,11 +2145,8 @@ glutStopVideoResizing

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). +inputs, such as a multi-touch screen, multi-touch touchpad, or +multiple mouses.

glutMultiEntryFunc(id, GLUT_ENTERED|GLUT_LEFT)

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

@@ -2157,13 +2154,36 @@ contact points on Windows (id=TOUCHINPUT->id).

glutMultiPassiveFunc(id, x, y)

These functions work like their non-multi variants, with an additional -'deviceid' parameter describing the current input device.
+'deviceid' parameter describing the current input device (mouse or +finger).
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? +TODO: are both callbacks called on Windows as well?
+ +
+ +Limitation: currently on the cursor id is provided. It may be +desirable to get the device id as well in the following situations: + + + +Since this extra support comes at the cost of extra complexity, we're +considering whether/how to implement it. +

19. Miscellaneous Functions