2 /* Copyright (c) Mark J. Kilgard, 1994. */
4 /* This program is freely distributable without licensing fees
5 and is provided without guarantee or warrantee expressed or
6 implied. This program is -not- in the public domain. */
13 glutTabletMotionFunc(GLUTtabletMotionCB tabletMotionFunc
)
15 __glutCurrentWindow
->tabletMotion
= tabletMotionFunc
;
16 __glutUpdateInputDeviceMaskFunc
= __glutUpdateInputDeviceMask
;
17 __glutPutOnWorkList(__glutCurrentWindow
,
18 GLUT_DEVICE_MASK_WORK
);
19 /* If deinstalling callback, invalidate tablet position. */
20 if (tabletMotionFunc
== NULL
) {
21 __glutCurrentWindow
->tabletPos
[0] = -1;
22 __glutCurrentWindow
->tabletPos
[1] = -1;
27 glutTabletButtonFunc(GLUTtabletButtonCB tabletButtonFunc
)
29 __glutCurrentWindow
->tabletButton
= tabletButtonFunc
;
30 __glutUpdateInputDeviceMaskFunc
= __glutUpdateInputDeviceMask
;
31 __glutPutOnWorkList(__glutCurrentWindow
,
32 GLUT_DEVICE_MASK_WORK
);