use KeyCode MouseButton replace int
This commit is contained in:
@ -7,6 +7,7 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
|
#include "KeyCodes.h"
|
||||||
|
|
||||||
namespace Hazel
|
namespace Hazel
|
||||||
{
|
{
|
||||||
@ -14,9 +15,9 @@ namespace Hazel
|
|||||||
public:
|
public:
|
||||||
virtual ~Input() = default;
|
virtual ~Input() = default;
|
||||||
|
|
||||||
static bool IsKeyPressed(int key);
|
static bool IsKeyPressed(KeyCode key);
|
||||||
|
|
||||||
static bool IsMouseButtonPressed(int button);
|
static bool IsMouseButtonPressed(MouseButton button);
|
||||||
static std::pair<float, float> GetMousePosition();
|
static std::pair<float, float> GetMousePosition();
|
||||||
|
|
||||||
static float GetMouseX();
|
static float GetMouseX();
|
||||||
|
|||||||
Reference in New Issue
Block a user