![]() |
Dragonfly 2.2
A text-based game engine
|
00001 /// 00002 /// A "keyboard" event 00003 /// 00004 00005 #ifndef __EVENT_KEYBOARD_H__ 00006 #define __EVENT_KEYBOARD_H__ 00007 00008 #include "Event.h" 00009 00010 #define KEYBOARD_EVENT "keyboard" 00011 00012 class EventKeyboard : public Event { 00013 00014 protected: 00015 int key_val; ///< Stores the key value. 00016 00017 public: 00018 EventKeyboard(); 00019 00020 /// Set the key in the event. 00021 void setKey(int new_key); 00022 00023 /// Get the key from the event. 00024 int getKey(); 00025 00026 }; 00027 00028 #endif // __EVENT_KEYBOARD_H__