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 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * RCS INFORMATION: 00011 * 00012 * $RCSfile: P_CaveButtons.h,v $ 00013 * $Author: johns $ $Locker: $ $State: Exp $ 00014 * $Revision: 1.22 $ $Date: 2019/01/17 21:21:00 $ 00015 * 00016 *************************************************************************** 00017 * DESCRIPTION: 00018 * This is Paul's new Tracker code -- pgrayson@ks.uiuc.edu 00019 * 00020 * This is a Buttons that gets its info from the CAVE wand. 00021 * 00022 ***************************************************************************/ 00023 00025 class CaveButtons : public Buttons { 00026 private: 00027 int numButtons; 00028 00029 protected: 00031 virtual int do_start(const SensorConfig *); 00032 00033 public: 00034 CaveButtons(); 00035 00036 virtual const char *device_name() const { return "cavebuttons"; } 00037 virtual Buttons *clone() { return new CaveButtons; } 00038 00039 virtual void update(); 00040 inline virtual int alive() { return 1; } 00041 00042 }; 00043