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: SpaceballButtons.h,v $ 00013 * $Author: johns $ $Locker: $ $State: Exp $ 00014 * $Revision: 1.5 $ $Date: 2019/01/17 21:21:01 $ 00015 * 00016 ***************************************************************************/ 00017 00019 class SpaceballButtons : public Buttons { 00020 private: 00021 VMDApp *app; 00022 int numButtons; 00023 00024 protected: 00025 virtual int do_start(const SensorConfig *); 00026 00027 public: 00028 SpaceballButtons(VMDApp *); 00029 00030 virtual const char *device_name() const { return "sballbuttons"; } 00031 virtual Buttons *clone() { return new SpaceballButtons(app); } 00032 00033 virtual void update(); 00034 inline virtual int alive() { return 1; } 00035 }; 00036