2015-07-11 01:07:24 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
2016-02-14 17:58:35 +00:00
|
|
|
enum class MouseButton
|
|
|
|
{
|
|
|
|
LeftButton = 0,
|
|
|
|
RightButton = 1,
|
|
|
|
MiddleButton = 2,
|
|
|
|
};
|
|
|
|
|
2015-07-11 01:07:24 +00:00
|
|
|
class IKeyManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void RefreshState() = 0;
|
2016-02-14 17:58:35 +00:00
|
|
|
virtual bool IsMouseButtonPressed(MouseButton button) = 0;
|
2015-07-11 01:07:24 +00:00
|
|
|
virtual bool IsKeyPressed(uint32_t keyCode) = 0;
|
|
|
|
virtual uint32_t GetPressedKey() = 0;
|
2015-07-11 12:27:22 +00:00
|
|
|
virtual string GetKeyName(uint32_t keyCode) = 0;
|
|
|
|
virtual uint32_t GetKeyCode(string keyName) = 0;
|
2015-07-11 01:07:24 +00:00
|
|
|
};
|