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.h,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 "P_Buttons.h" 00023 class VRJugglerScene; 00024 00026 class VRJugglerButtons : public Buttons { 00027 public: 00028 VRJugglerButtons(VRJugglerScene* scene); 00029 virtual const char *device_name() const { return "vrjugglerbuttons"; } 00030 virtual Buttons *clone() { return new VRJugglerButtons(mScene); } 00031 virtual void update(); 00032 inline virtual int alive() { return 1; } 00033 00034 protected: 00036 virtual int do_start(const SensorConfig *); 00037 VRJugglerScene* mScene; 00038 }; 00039