- Main Page
- Classes
- Files

- File List
- File Members

# C:/Users/Public/AGS Final Folder/BFLETCHER D4010283/Source/Game/Source/InputEvents.h

Go to the documentation of this file.

    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