1c041511dScube
2c041511dScube/* Copyright (c) Mark J. Kilgard, 1994. */
3c041511dScube
4c041511dScube/* This program is freely distributable without licensing fees
5c041511dScube   and is provided without guarantee or warrantee expressed or
6c041511dScube   implied. This program is -not- in the public domain. */
7c041511dScube
8c041511dScube#include "glutint.h"
9c041511dScube
10c041511dScubevoid GLUTAPIENTRY
11c041511dScubeglutSpaceballMotionFunc(GLUTspaceMotionCB spaceMotionFunc)
12c041511dScube{
13c041511dScube  __glutCurrentWindow->spaceMotion = spaceMotionFunc;
14c041511dScube  __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
15c041511dScube  __glutPutOnWorkList(__glutCurrentWindow,
16c041511dScube    GLUT_DEVICE_MASK_WORK);
17c041511dScube}
18c041511dScube
19c041511dScubevoid GLUTAPIENTRY
20c041511dScubeglutSpaceballRotateFunc(GLUTspaceRotateCB spaceRotateFunc)
21c041511dScube{
22c041511dScube  __glutCurrentWindow->spaceRotate = spaceRotateFunc;
23c041511dScube  __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
24c041511dScube  __glutPutOnWorkList(__glutCurrentWindow,
25c041511dScube    GLUT_DEVICE_MASK_WORK);
26c041511dScube}
27c041511dScube
28c041511dScubevoid GLUTAPIENTRY
29c041511dScubeglutSpaceballButtonFunc(GLUTspaceButtonCB spaceButtonFunc)
30c041511dScube{
31c041511dScube  __glutCurrentWindow->spaceButton = spaceButtonFunc;
32c041511dScube  __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
33c041511dScube  __glutPutOnWorkList(__glutCurrentWindow,
34c041511dScube    GLUT_DEVICE_MASK_WORK);
35c041511dScube}
36