From 4f7c680fe61618a9363cdb6d95eda5da0bda07c8 Mon Sep 17 00:00:00 2001 From: anulax1225 Date: Fri, 19 Jan 2024 11:22:26 +0100 Subject: [PATCH] Test events and assertion --- bakara/src/bakara.h | 4 +++- sandbox/src/sandbox.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bakara/src/bakara.h b/bakara/src/bakara.h index 74662fb..7574eb2 100644 --- a/bakara/src/bakara.h +++ b/bakara/src/bakara.h @@ -3,10 +3,12 @@ #include #include #include +#include +#include #include #include +#include #include #include -#include #include \ No newline at end of file diff --git a/sandbox/src/sandbox.cpp b/sandbox/src/sandbox.cpp index fc62e8f..1aa15b3 100644 --- a/sandbox/src/sandbox.cpp +++ b/sandbox/src/sandbox.cpp @@ -10,7 +10,9 @@ class Sandbox : public Bk::Application { auto event = Bk::WindowResizeEvent(120, 120); auto key_event = Bk::KeyPressEvent(Bk::Key::A); - std::cout << event.to_string() << "\n" << key_event.to_string() << "\n"; + auto mouse_event = Bk::MouseMoveEvent(2.3f, 1.2f); + std::cout << event.to_string() << "\n" << key_event.to_string() << "\n" << mouse_event.get_pos().x << "\n"; + BK_CORE_IMP_ASSERT(false, "Big Error") } ~Sandbox()