home *** CD-ROM | disk | FTP | other *** search
- #ifndef INPUTDEVICE_H
- #define INPUTDEVICE_H
-
- #include <String.hpp>
- #include "InputManager.h"
-
- class InputDevice
- {
- /*-----Examples of key namimg
- static const String mouse_0 = "Left Button";
- static const String mouse_1 = "Right Button";
- static const String mouse_2 = "Middle Button";
- static const String mouse_other = "Button ";
- static const String joy_0 = "Fire";
- static const String joy_1 = "Alt. Fire";
- static const String joy_other = "Button ";
- static const String key_esc = "Esc";
- static const String key_left = "Left";
- static const String key_right = "Right";
- static const String key_up = "Up";
- static const String key_down = "Down";
- static const String key_shift = "Shift";
-
- static const String type_keyboard = "Keyboard";
- static const String type_mouse = "Mouse";
- static const String type_joystick = "Joystick";
- other devices could have other names
- */
- public:
- InputDevice();
- virtual ~InputDevice();
- virtual String get_name()const=0;
- virtual String get_type()const=0;
- };
- #endif //INPUTDEVICE_H