TapestryEngine

A 2D Platformer Game Engine
Log | Files | Refs

bb680fdac05e4b5c089b3af14220d59e2bcf6a8c.svn-base (272B)


      1 #ifndef INPUT_H
      2 #define INPUT_H
      3 
      4 #include "Utils.h"
      5 #include "Event.h"
      6 
      7 class Control
      8 {
      9 public:
     10 
     11 	Control();
     12 
     13 	bool SendKeyEvent(int KeyID, int KeyState);
     14 
     15 	void ProcessKeyboard();
     16 
     17 	EventFeed mFeed;
     18 
     19 protected:
     20 
     21 	const Uint8* mKeyState;
     22 	Uint8 mLastState[512];
     23 };
     24 
     25 #endif