MULTIPLAYER
This commit is contained in:
+8
-10
@@ -1,10 +1,6 @@
|
||||
#ifndef Components_Input_h__
|
||||
#define Components_Input_h__
|
||||
|
||||
#include <array>
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include "Component.h"
|
||||
|
||||
namespace Components
|
||||
@@ -12,12 +8,14 @@ namespace Components
|
||||
|
||||
struct Input : Component
|
||||
{
|
||||
std::array<int, GLFW_KEY_LAST+1> KeyState;
|
||||
std::array<int, GLFW_KEY_LAST+1> LastKeyState;
|
||||
std::array<int, GLFW_MOUSE_BUTTON_LAST+1> MouseState;
|
||||
std::array<int, GLFW_MOUSE_BUTTON_LAST+1> LastMouseState;
|
||||
float dX, dY;
|
||||
float WheelDelta;
|
||||
/*Input()
|
||||
: Keyboard(false)
|
||||
, Mouse(false)
|
||||
, GamepadID(0) { }
|
||||
|
||||
bool Keyboard;
|
||||
bool Mouse;
|
||||
int GamepadID;*/
|
||||
|
||||
virtual Input* Clone() const override { return new Input(*this); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user