diff options
Diffstat (limited to 'src/common/input.h')
| -rw-r--r-- | src/common/input.h | 10 |
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 { | |||
| 164 | public: | 164 | public: |
| 165 | virtual ~InputDevice() = default; | 165 | virtual ~InputDevice() = default; |
| 166 | 166 | ||
| 167 | // Request input device to update if necessary | ||
| 168 | virtual void SoftUpdate() { | ||
| 169 | return; | ||
| 170 | } | ||
| 171 | |||
| 172 | // Force input device to update data regarless of the current state | ||
| 173 | virtual void ForceUpdate() { | ||
| 174 | return; | ||
| 175 | } | ||
| 176 | |||
| 167 | void SetCallback(InputCallback callback_) { | 177 | void SetCallback(InputCallback callback_) { |
| 168 | callback = std::move(callback_); | 178 | callback = std::move(callback_); |
| 169 | } | 179 | } |