summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common/input.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/input.h b/src/common/input.h
index cdacd4689..cb84f1005 100644
--- a/src/common/input.h
+++ b/src/common/input.h
@@ -164,6 +164,16 @@ class InputDevice {
public:
virtual ~InputDevice() = default;
+ // Request input device to update if necessary
+ virtual void SoftUpdate() {
+ return;
+ }
+
+ // Force input device to update data regarless of the current state
+ virtual void ForceUpdate() {
+ return;
+ }
+
void SetCallback(InputCallback callback_) {
callback = std::move(callback_);
}