input_common: Add manual update options to input devices

This commit is contained in:
german77 authored and Narr the Reg committed 2021-11-24 20:30:26 -06:00
1 parent c545dca53b
commit ae6ba2c8bd
5 files changed
+56

No files matched your search

+20
View File
@@ -45,6 +45,16 @@ public:
};
}
void ForceUpdate() {
const Input::CallbackStatus status{
.type = Input::InputType::Button,
.button_status = GetStatus(),
};
last_button_value = status.button_status.value;
TriggerOnChange(status);
}
void OnChange() {
const Input::CallbackStatus status{
.type = Input::InputType::Button,
@@ -96,6 +106,16 @@ public:
};
}
void ForceUpdate() {
const Input::CallbackStatus status{
.type = Input::InputType::Button,
.button_status = GetStatus(),
};
last_button_value = status.button_status.value;
TriggerOnChange(status);
}
void OnChange() {
const Input::CallbackStatus status{
.type = Input::InputType::Button,