From 6de3d16fd3e7d98c98cdf73c6a3317e1a6b10184 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 26 May 2018 23:15:02 +0200 Subject: Add KeyWatcher to handle pausing via space --- src/glfw/window.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glfw/window.cc') diff --git a/src/glfw/window.cc b/src/glfw/window.cc index 17fc36c..6fbbfee 100644 --- a/src/glfw/window.cc +++ b/src/glfw/window.cc @@ -22,3 +22,7 @@ int Window::getWidth() const { int Window::getHeight() const { return _height; } + +KeyWatcher Window::getKeyWatcher(int key) { + return KeyWatcher(_handle, key); +} -- cgit v1.2.3