00001 #ifndef _INPUTEVENTS_H_ 00002 #define _INPUTEVENTS_H_ 00003 00004 #include "IEvent.h" 00005 #include "InputHandler.h" 00006 00007 class ButtonInputEvent : public IEvent 00008 { 00009 public: 00010 ButtonInputEvent(const int &key, const bool &bIsDown) : IEvent(), m_key(key), m_bIsDown(bIsDown) { m_eventName = cEventName; } 00011 ~ButtonInputEvent() {} 00012 00013 virtual HashString GetEventType() { return m_eventName; } 00014 int GetKey() { return m_key; } 00015 bool IsKeyDown() { return m_bIsDown; } 00016 00017 static HashString cEventName; 00018 00019 protected: 00020 HashString m_eventName; 00021 int m_key; 00022 bool m_bIsDown; 00023 }; 00024 00025 #endif
1.5.9