Clear stale input state on session reset
Some checks failed
ci-bundle.yml / Clear stale input state on session reset (push) Failing after 0s
ci-copr.yml / Clear stale input state on session reset (push) Failing after 0s
ci-homebrew.yml / Clear stale input state on session reset (push) Failing after 0s

This commit is contained in:
Joey Yakimowich-Payne 2026-02-11 21:31:23 -07:00
commit e2d3f23575

View file

@ -1668,8 +1668,8 @@ namespace input {
for (int x = 0; x < mouse_press.size(); ++x) { for (int x = 0; x < mouse_press.size(); ++x) {
if (mouse_press[x]) { if (mouse_press[x]) {
platf::button_mouse(platf_input, x, true); platf::button_mouse(platf_input, x, true);
mouse_press[x] = false;
} }
mouse_press[x] = false;
} }
for (auto &kp : key_press) { for (auto &kp : key_press) {
@ -1680,7 +1680,10 @@ namespace input {
platf::keyboard_update(platf_input, vk_from_kpid(kp.first) & 0x00FF, true, flags_from_kpid(kp.first)); platf::keyboard_update(platf_input, vk_from_kpid(kp.first) & 0x00FF, true, flags_from_kpid(kp.first));
key_press[kp.first] = false; key_press[kp.first] = false;
} }
});
key_press.clear();
key_press_repeat_id = nullptr;
}).wait();
} }
class deinit_t: public platf::deinit_t { class deinit_t: public platf::deinit_t {