summaryrefslogtreecommitdiff
path: root/src/video/video_driver.hpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-02-19 11:01:49 +0100
committerPatric Stout <github@truebrain.nl>2021-02-20 17:08:44 +0100
commit661eb39ecc3a128c24dbbc4f53d1c075fe89bc93 (patch)
treec579f44c8186f43169138cafce3ed02d38baf2ef /src/video/video_driver.hpp
parent38b4ae1c0ea05944cda66a499454a5b08a7a4462 (diff)
downloadopenttd-661eb39ecc3a128c24dbbc4f53d1c075fe89bc93.tar.xz
Codechange: move all input-handling of video-drivers into InputLoop
Diffstat (limited to 'src/video/video_driver.hpp')
-rw-r--r--src/video/video_driver.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video/video_driver.hpp b/src/video/video_driver.hpp
index 732050c76..8ba1d2466 100644
--- a/src/video/video_driver.hpp
+++ b/src/video/video_driver.hpp
@@ -156,6 +156,11 @@ protected:
}
}
+ /**
+ * Handle input logic, is CTRL pressed, should we fast-forward, etc.
+ */
+ virtual void InputLoop() {}
+
std::chrono::steady_clock::duration GetGameInterval()
{
return std::chrono::milliseconds(MILLISECONDS_PER_TICK);