aboutsummaryrefslogtreecommitdiff
path: root/src/common/input.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-10-24 20:28:54 -0500
committerNarr the Reg <juangerman-13@hotmail.com>2021-11-24 20:30:26 -0600
commitc6c32daf40ae1c720f0a2897c538bb1117371ea5 (patch)
tree26879cbeb2162e706086818ad501a8f2730206d5 /src/common/input.h
parentf01dac3bf934657059b77bae3630201110f83e3d (diff)
input_common: Add manual update options to input devices
Diffstat (limited to 'src/common/input.h')
-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 cdacd46897..cb84f1005a 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_);
}