Doxygen Source Code Documentation
glut_space.c
Go to the documentation of this file.00001 00002 /* Copyright (c) Mark J. Kilgard, 1994. */ 00003 00004 /* This program is freely distributable without licensing fees 00005 and is provided without guarantee or warrantee expressed or 00006 implied. This program is -not- in the public domain. */ 00007 00008 #include "glutint.h" 00009 00010 void 00011 glutSpaceballMotionFunc(GLUTspaceMotionCB spaceMotionFunc) 00012 { 00013 __glutCurrentWindow->spaceMotion = spaceMotionFunc; 00014 __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask; 00015 __glutPutOnWorkList(__glutCurrentWindow, 00016 GLUT_DEVICE_MASK_WORK); 00017 } 00018 00019 void 00020 glutSpaceballRotateFunc(GLUTspaceRotateCB spaceRotateFunc) 00021 { 00022 __glutCurrentWindow->spaceRotate = spaceRotateFunc; 00023 __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask; 00024 __glutPutOnWorkList(__glutCurrentWindow, 00025 GLUT_DEVICE_MASK_WORK); 00026 } 00027 00028 void 00029 glutSpaceballButtonFunc(GLUTspaceButtonCB spaceButtonFunc) 00030 { 00031 __glutCurrentWindow->spaceButton = spaceButtonFunc; 00032 __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask; 00033 __glutPutOnWorkList(__glutCurrentWindow, 00034 GLUT_DEVICE_MASK_WORK); 00035 }