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