summary refs log tree commit diff
path: root/src/GFX/Window.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GFX/Window.hpp')
-rw-r--r--src/GFX/Window.hpp7
1 files changed, 4 insertions, 3 deletions
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;