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 File Reference

#include "glutint.h"

Go to the source code of this file.


Functions

void glutTabletMotionFunc (GLUTtabletMotionCB tabletMotionFunc)
void glutTabletButtonFunc (GLUTtabletButtonCB tabletButtonFunc)

Function Documentation

void glutTabletButtonFunc GLUTtabletButtonCB    tabletButtonFunc
 

Definition at line 25 of file glut_tablet.c.

References __glutPutOnWorkList(), GLUT_DEVICE_MASK_WORK, and GLUTtabletButtonCB.

00026 {
00027   __glutCurrentWindow->tabletButton = tabletButtonFunc;
00028   __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
00029   __glutPutOnWorkList(__glutCurrentWindow,
00030     GLUT_DEVICE_MASK_WORK);
00031 }

void glutTabletMotionFunc GLUTtabletMotionCB    tabletMotionFunc
 

Definition at line 11 of file glut_tablet.c.

References __glutPutOnWorkList(), GLUT_DEVICE_MASK_WORK, and GLUTtabletMotionCB.

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 }
 

Powered by Plone

This site conforms to the following standards: