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

P_JoystickButtons.h

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  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  * RCS INFORMATION:
00011  *
00012  *      $RCSfile: P_JoystickButtons.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.19 $       $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 Win32 joystick API
00021  *
00022  ***************************************************************************/
00023 
00024 #ifdef WINGMAN
00025 
00027 class JoystickButtons : public Buttons {
00028 private:
00029   JoyHandle joy;
00030 
00031 protected:
00032   virtual int do_start(const SensorConfig *);
00033 
00034 public:
00035   JoystickButtons();
00036   ~JoystickButtons();
00037   
00038   virtual const char *device_name() { return "joystickbuttons"; }
00039   virtual Buttons *clone() { return new JoystickButtons; }
00040 
00041   virtual void update();
00042   inline virtual int alive() { return joy!=NULL; }
00043 };
00044 
00045 #endif
00046 

Generated on Thu Mar 28 02:43:56 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002