20 lines
353 B
C++
20 lines
353 B
C++
#ifndef InputSystem_h__
|
|||
|
|
#define InputSystem_h__
|
||
|
|
#include <Windows.h>
|
||
|
|
#include "Types.h"
|
||
|
|
|
||
|
|
namespace LifeCore {
|
||
|
|
class InputSystem
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
InputSystem();
|
||
|
|
void Init();
|
||
|
|
void Update();
|
||
|
|
private:
|
||
|
|
static long __stdcall WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
|
||
|
|
uint8 keys[0xff];
|
||
|
|
long hwnd;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
#endif // InputSystem_h__
|