Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Keyboard.h

Go to the documentation of this file.
00001 #ifndef __KEYBOARD_CONTROLLER_H
00002 #define __KEYBOARD_CONTROLLER_H
00003 
00004 #ifdef HAVE_VIEWER
00005 
00006 #include "Controller.h"
00007 
00012 namespace Teem
00013 {
00017     class KeyboardController : public Controller
00018     {
00019     public:
00021         KeyboardController(double runningSpeed, double turningSpeed);
00023         virtual ~KeyboardController();
00024         
00026         virtual void setInput(unsigned index, double val)
00027         {
00028             assert(false);
00029         }
00030         
00032         virtual double getOutput(unsigned index)
00033         {
00034             assert(index < 2);
00035             return output[index];
00036         }
00037         
00038         virtual void step();
00039         
00040         double runningSpeed; 
00041         double turningSpeed; 
00042         
00043     protected:
00044         double output[2]; 
00045     };
00046 }
00047 
00048 #endif // HAVE_VIEWER
00049 
00050 #endif

Generated on Mon Oct 24 17:38:25 2005 for Teem by  doxygen 1.4.2