Added Wren scripting with module system 📚

Added Input pressed, released system
Added interface button support with wren onclick callback
This commit is contained in:
Antoine Pilote
2021-06-09 22:15:53 -04:00
parent aa2ebd04c8
commit 19db72aa22
1185 changed files with 320199 additions and 486 deletions

View File

@@ -22,9 +22,9 @@ void EditorCamera::Update(Timestep ts)
Input::HideMouse();
// Should probably not have speed binding in here.
if (Input::IsKeyPress(GLFW_KEY_UP))
if (Input::IsKeyDown(GLFW_KEY_UP))
Speed += 0.1f;
else if (Input::IsKeyPress(GLFW_KEY_DOWN))
else if (Input::IsKeyDown(GLFW_KEY_DOWN))
Speed -= 0.1f;
if (Speed < 0)