summaryrefslogtreecommitdiff
path: root/src/common/input.h
diff options
context:
space:
mode:
authorGravatar german772021-10-24 20:28:54 -0500
committerGravatar Narr the Reg2021-11-24 20:30:26 -0600
commitc6c32daf40ae1c720f0a2897c538bb1117371ea5 (patch)
tree26879cbeb2162e706086818ad501a8f2730206d5 /src/common/input.h
parentservice/hid: Fix memory allocated incorrectly (diff)
downloadyuzu-c6c32daf40ae1c720f0a2897c538bb1117371ea5.tar.gz
yuzu-c6c32daf40ae1c720f0a2897c538bb1117371ea5.tar.xz
yuzu-c6c32daf40ae1c720f0a2897c538bb1117371ea5.zip
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 cdacd4689..cb84f1005 100644
--- a/src/common/input.h
+++ b/src/common/input.h
@@ -164,6 +164,16 @@ class InputDevice {
164public: 164public:
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 }