diff options
author | Adrian Kummerlaender | 2018-05-26 23:15:02 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2018-05-26 23:15:02 +0200 |
commit | 6de3d16fd3e7d98c98cdf73c6a3317e1a6b10184 (patch) | |
tree | 5292545e66c32735f2d157ac4406d211094c12e0 /src/glfw/window.cc | |
parent | 6ce077f58779376481ab498ca4e1df60c1e2eee3 (diff) | |
download | computicle-6de3d16fd3e7d98c98cdf73c6a3317e1a6b10184.tar computicle-6de3d16fd3e7d98c98cdf73c6a3317e1a6b10184.tar.gz computicle-6de3d16fd3e7d98c98cdf73c6a3317e1a6b10184.tar.bz2 computicle-6de3d16fd3e7d98c98cdf73c6a3317e1a6b10184.tar.lz computicle-6de3d16fd3e7d98c98cdf73c6a3317e1a6b10184.tar.xz computicle-6de3d16fd3e7d98c98cdf73c6a3317e1a6b10184.tar.zst computicle-6de3d16fd3e7d98c98cdf73c6a3317e1a6b10184.zip |
Add KeyWatcher to handle pausing via space
Diffstat (limited to 'src/glfw/window.cc')
-rw-r--r-- | src/glfw/window.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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); +} |