source: trunk/src/opengl/glut/glut_space.c

Last change on this file was 2689, checked in by jeroen, 26 years ago

* empty log message *

File size: 1.1 KB
Line 
1/* $Id: glut_space.c,v 1.2 2000-02-09 08:46:16 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 "glutint.h"
9
10void APIENTRY
11glutSpaceballMotionFunc(GLUTspaceMotionCB spaceMotionFunc)
12{
13 __glutCurrentWindow->spaceMotion = spaceMotionFunc;
14 __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
15 __glutPutOnWorkList(__glutCurrentWindow,
16 GLUT_DEVICE_MASK_WORK);
17}
18
19void APIENTRY
20glutSpaceballRotateFunc(GLUTspaceRotateCB spaceRotateFunc)
21{
22 __glutCurrentWindow->spaceRotate = spaceRotateFunc;
23 __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
24 __glutPutOnWorkList(__glutCurrentWindow,
25 GLUT_DEVICE_MASK_WORK);
26}
27
28void APIENTRY
29glutSpaceballButtonFunc(GLUTspaceButtonCB spaceButtonFunc)
30{
31 __glutCurrentWindow->spaceButton = spaceButtonFunc;
32 __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
33 __glutPutOnWorkList(__glutCurrentWindow,
34 GLUT_DEVICE_MASK_WORK);
35}
Note: See TracBrowser for help on using the repository browser.