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. */
11 glutSpaceballMotionFunc(GLUTspaceMotionCB spaceMotionFunc
)
13 __glutCurrentWindow
->spaceMotion
= spaceMotionFunc
;
14 __glutUpdateInputDeviceMaskFunc
= __glutUpdateInputDeviceMask
;
15 __glutPutOnWorkList(__glutCurrentWindow
,
16 GLUT_DEVICE_MASK_WORK
);
20 glutSpaceballRotateFunc(GLUTspaceRotateCB spaceRotateFunc
)
22 __glutCurrentWindow
->spaceRotate
= spaceRotateFunc
;
23 __glutUpdateInputDeviceMaskFunc
= __glutUpdateInputDeviceMask
;
24 __glutPutOnWorkList(__glutCurrentWindow
,
25 GLUT_DEVICE_MASK_WORK
);
29 glutSpaceballButtonFunc(GLUTspaceButtonCB spaceButtonFunc
)
31 __glutCurrentWindow
->spaceButton
= spaceButtonFunc
;
32 __glutUpdateInputDeviceMaskFunc
= __glutUpdateInputDeviceMask
;
33 __glutPutOnWorkList(__glutCurrentWindow
,
34 GLUT_DEVICE_MASK_WORK
);