Input system complete (untested)
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
#ifndef Components_Input_h__
|
||||
#define Components_Input_h__
|
||||
|
||||
#include "Component.h"
|
||||
#include <array>
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include "Component.h"
|
||||
|
||||
namespace Components
|
||||
{
|
||||
|
||||
struct Input : Component
|
||||
{
|
||||
int KeyState[GLFW_KEY_LAST];
|
||||
int MouseState[GLFW_MOUSE_BUTTON_LAST];
|
||||
std::array<int, GLFW_KEY_LAST> KeyState;
|
||||
std::array<int, GLFW_KEY_LAST> LastKeyState;
|
||||
std::array<int, GLFW_MOUSE_BUTTON_LAST> MouseState;
|
||||
std::array<int, GLFW_MOUSE_BUTTON_LAST> LastMouseState;
|
||||
float dX, dY;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user