home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 June / Game.EXE_06_2002.iso / Alawar / Lib / InputForGameExe / InputDevice.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-04-26  |  1.0 KB  |  35 lines

  1. #ifndef INPUTDEVICE_H
  2. #define INPUTDEVICE_H
  3.  
  4. #include <String.hpp>
  5. #include "InputManager.h"
  6.  
  7. class InputDevice
  8. {
  9. /*-----Examples of key namimg
  10.     static const String mouse_0 = "Left Button";
  11.     static const String mouse_1 = "Right Button";
  12.     static const String mouse_2 = "Middle Button";
  13.     static const String mouse_other = "Button ";
  14.     static const String joy_0 = "Fire";
  15.     static const String joy_1 = "Alt. Fire";
  16.     static const String joy_other = "Button ";
  17.     static const String key_esc = "Esc";
  18.     static const String key_left = "Left";
  19.     static const String key_right = "Right";
  20.     static const String key_up = "Up";
  21.     static const String key_down = "Down";
  22.     static const String key_shift = "Shift";
  23.  
  24.     static const String type_keyboard = "Keyboard";
  25.     static const String type_mouse = "Mouse";
  26.     static const String type_joystick = "Joystick";
  27.     other devices could have other names
  28. */
  29. public:
  30.     InputDevice();
  31.     virtual ~InputDevice();
  32.     virtual String get_name()const=0;
  33.     virtual String get_type()const=0;
  34. };
  35. #endif //INPUTDEVICE_H