Add Input class

- Add Input class used to poll mouse and key button states
- Add additional example systems to the Scene
This commit is contained in:
Thraix
2023-05-26 23:02:03 +02:00
parent d817c3084d
commit 5a615ecc4e
16 changed files with 505 additions and 40 deletions
+3
View File
@@ -1,6 +1,7 @@
#include "copium/core/Application.h"
#include "copium/core/Vulkan.h"
#include "copium/event/EventDispatcher.h"
#include "copium/event/Input.h"
#include "copium/util/Common.h"
#include "copium/util/Timer.h"
@@ -16,7 +17,9 @@ int main(int argc, char** argv)
while (application.Update())
{
glfwPollEvents();
Copium::EventDispatcher::Dispatch();
Copium::Input::Update();
}
}
Copium::Vulkan::Destroy();