Line | |
---|
1 | /* $Id: glut_tablet.c,v 1.2 2000-02-09 08:46:17 jeroen Exp $ */
|
---|
2 | /* Copyright (c) Mark J. Kilgard, 1994. */
|
---|
3 |
|
---|
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. */
|
---|
7 |
|
---|
8 | #include <stdlib.h>
|
---|
9 |
|
---|
10 | #include "glutint.h"
|
---|
11 |
|
---|
12 | void APIENTRY
|
---|
13 | glutTabletMotionFunc(GLUTtabletMotionCB tabletMotionFunc)
|
---|
14 | {
|
---|
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;
|
---|
23 | }
|
---|
24 | }
|
---|
25 |
|
---|
26 | void APIENTRY
|
---|
27 | glutTabletButtonFunc(GLUTtabletButtonCB tabletButtonFunc)
|
---|
28 | {
|
---|
29 | __glutCurrentWindow->tabletButton = tabletButtonFunc;
|
---|
30 | __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
|
---|
31 | __glutPutOnWorkList(__glutCurrentWindow,
|
---|
32 | GLUT_DEVICE_MASK_WORK);
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.