Renderer refactoring. WIP InputSystem.

This commit is contained in:
2014-03-07 02:28:19 +01:00
parent e65db077d5
commit b1f0bc7cce
8 changed files with 39 additions and 59 deletions
+6
View File
@@ -7,6 +7,12 @@ void Systems::InputSystem::Update(double dt, EntityID entity, EntityID parent)
if (input == nullptr)
return;
for (int i = 0; i <= GLFW_KEY_LAST; ++i) {
input->KeyState[i] = glfwGetKey(m_Renderer->GetWindow(), i);
}
for (int i = 0; i <= GLFW_MOUSE_BUTTON_LAST; ++i) {
input->MouseState[i] = glfwGetMouseButton(m_Renderer->GetWindow(), i);
}
}