mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 16:55:46 +00:00
input_common: Add manual update options to input devices
This commit is contained in:
parent
c545dca53b
commit
ae6ba2c8bd
5 changed files with 56 additions and 0 deletions
|
@ -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_);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue