Refactored factory and component system.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef Input_h__
|
||||
#define Input_h__
|
||||
#ifndef Components_Input_h__
|
||||
#define Components_Input_h__
|
||||
|
||||
#include "Component.h"
|
||||
#include <GLFW/glfw3.h>
|
||||
@@ -7,13 +7,13 @@
|
||||
namespace Components
|
||||
{
|
||||
|
||||
struct Input : Component
|
||||
{
|
||||
int KeyState[GLFW_KEY_LAST];
|
||||
float MouseState[2];
|
||||
float dX, dY;
|
||||
};
|
||||
REGISTER_COMPONENT("Input", Input);
|
||||
struct Input : Component
|
||||
{
|
||||
int KeyState[GLFW_KEY_LAST];
|
||||
float MouseState[2];
|
||||
float dX, dY;
|
||||
};
|
||||
|
||||
}
|
||||
#endif // !Input_h__
|
||||
|
||||
#endif // !Components_Input_h__
|
||||
Reference in New Issue
Block a user