Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
E:/Programming/MyProject/K_Game_hg/GameEngine/include/input/KeyEvent.h
Go to the documentation of this file.
00001 // Copyright 2006-2011 by Kat'Oun
00002 
00003 #ifndef _KEY_EVENT_H_
00004 #define _KEY_EVENT_H_
00005 
00006 #include <EngineConfig.h>
00007 #include <core/Types.h>
00008 #include <input/KeyEventDefines.h>
00009 #include <input/InputEvent.h>
00010 
00011 namespace input
00012 {
00013 
00015 class ENGINE_PUBLIC_EXPORT KeyEvent: public InputEvent
00016 {
00017 public:
00018 
00020         KeyEvent();
00021 
00023         ~KeyEvent();
00024 
00030         void set(KeyCode key, u32 modifiers, u32 text, InputDevice *source);
00031 
00033         KeyCode getKey() const;
00034 
00036         u32 getModifiers() const;
00037 
00039         u32 getText() const;
00040 
00041 protected:
00042 
00043         KeyCode mKey;
00044         u32 mModifiers;
00045         u32 mText;
00046 };
00047 
00048 } // end namespace input
00049 
00050 #endif

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:04 by Doxygen (1.7.4)