Doxygen Source Code Documentation
glut_tablet.c File Reference
#include "glutint.h"Go to the source code of this file.
Functions | |
| void | glutTabletMotionFunc (GLUTtabletMotionCB tabletMotionFunc) |
| void | glutTabletButtonFunc (GLUTtabletButtonCB tabletButtonFunc) |
Function Documentation
|
|
Definition at line 25 of file glut_tablet.c. References __glutPutOnWorkList(), GLUT_DEVICE_MASK_WORK, and GLUTtabletButtonCB.
00026 {
00027 __glutCurrentWindow->tabletButton = tabletButtonFunc;
00028 __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
00029 __glutPutOnWorkList(__glutCurrentWindow,
00030 GLUT_DEVICE_MASK_WORK);
00031 }
|
|
|
Definition at line 11 of file glut_tablet.c. References __glutPutOnWorkList(), GLUT_DEVICE_MASK_WORK, and GLUTtabletMotionCB.
00012 {
00013 __glutCurrentWindow->tabletMotion = tabletMotionFunc;
00014 __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
00015 __glutPutOnWorkList(__glutCurrentWindow,
00016 GLUT_DEVICE_MASK_WORK);
00017 /* If deinstalling callback, invalidate tablet position. */
00018 if (tabletMotionFunc == NULL) {
00019 __glutCurrentWindow->tabletPos[0] = -1;
00020 __glutCurrentWindow->tabletPos[1] = -1;
00021 }
00022 }
|