From 129f2e421e16bd008cdca8713cc91f67d103d94e Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 7 Jul 2023 23:05:14 +0200 Subject: Fix minor quality issues --- src/GFX/Window.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/GFX/Window.hpp') diff --git a/src/GFX/Window.hpp b/src/GFX/Window.hpp index 63e8446..966925c 100644 --- a/src/GFX/Window.hpp +++ b/src/GFX/Window.hpp @@ -12,7 +12,7 @@ public: Window(const char* title, uint32_t width, uint32_t height); ~Window(); - GLFWwindow* get(); + GLFWwindow* get() const; void on_size_change(void (* callback)(GLFWwindow*, int, int)); @@ -20,8 +20,9 @@ public: void start_frame(); Vector<2> mouse_delta(); - bool key(int key, int type); - bool should_close(); + bool key(int key, int type) const; + bool mouse(int key, int type) const; + bool should_close() const; private: GLFWwindow* m_window; Mouse m_mouse; -- cgit 1.4.1