Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

glut_tablet.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 glutTabletMotionFunc(GLUTtabletMotionCB tabletMotionFunc)
00012 {
00013   __glutCurrentWindow->tabletMotion = tabletMotionFunc;
00014   __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
00015   __glutPutOnWorkList(__glutCurrentWindow,
00016     GLUT_DEVICE_MASK_WORK);
00017   /* If deinstalling callback, invalidate tablet position. */
00018   if (tabletMotionFunc == NULL) {
00019     __glutCurrentWindow->tabletPos[0] = -1;
00020     __glutCurrentWindow->tabletPos[1] = -1;
00021   }
00022 }
00023 
00024 void
00025 glutTabletButtonFunc(GLUTtabletButtonCB tabletButtonFunc)
00026 {
00027   __glutCurrentWindow->tabletButton = tabletButtonFunc;
00028   __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
00029   __glutPutOnWorkList(__glutCurrentWindow,
00030     GLUT_DEVICE_MASK_WORK);
00031 }
 

Powered by Plone

This site conforms to the following standards: