Add Event system
- Add abstract Event class - Add EventDispatcher - Add Mouse, Key and Window Events
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "copium/core/Application.h"
|
||||
#include "copium/core/Vulkan.h"
|
||||
#include "copium/event/EventDispatcher.h"
|
||||
#include "copium/util/Common.h"
|
||||
#include "copium/util/Timer.h"
|
||||
|
||||
@@ -17,6 +18,7 @@ int main(int argc, char** argv)
|
||||
while (application.Update())
|
||||
{
|
||||
glfwPollEvents();
|
||||
Copium::EventDispatcher::Dispatch();
|
||||
if (timer.Elapsed() >= 1.0)
|
||||
{
|
||||
CP_DEBUG("%d fps", frames);
|
||||
|
||||
Reference in New Issue
Block a user