Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

VRJugglerButtons.C

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr
00003  *cr            (C) Copyright 1995-2019 The Board of Trustees of the
00004  *cr                        University of Illinois
00005  *cr                         All Rights Reserved
00006  *cr
00007  *cr VRJuggler patches contributed by Martijn Kragtwijk: m.kragtwijk@rug.nl
00008  *cr
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  * RCS INFORMATION:
00013  *
00014  *      $RCSfile: VRJugglerButtons.C,v $
00015  *      $Author: johns $        $Locker:  $             $State: Exp $
00016  *      $Revision: 1.4 $       $Date: 2019/01/17 21:21:02 $
00017  *
00018  ***************************************************************************
00019  * DESCRIPTION:
00020  * a VRJuggler specific button device for VMD
00021  ***************************************************************************/
00022 #include "VRJugglerButtons.h"
00023 #include "VRJugglerScene.h"
00024 
00025 VRJugglerButtons::VRJugglerButtons(VRJugglerScene* scene) :Buttons(), mScene(scene) {
00026 };
00027 
00028 int VRJugglerButtons::do_start(const SensorConfig *) {
00029   // XXX Somehow check that a VRJuggler environment exists.  If it doesn't,
00030   // return false.
00031   return 1; // VRJuggler is active.
00032 }
00033 
00034 void VRJugglerButtons::update() {
00035   stat[0]=mScene->getWandButton(0);
00036   stat[1]=mScene->getWandButton(1);
00037 }
00038 

Generated on Fri Oct 11 02:44:59 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002