Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeralChild64 <>2022-08-08 21:55:12 +0300
committerFeralChild64 <>2022-08-08 21:55:12 +0300
commit69389ff061f6f74c950d1d3424e51db160903d2e (patch)
tree41576b821375551384b708bc674e1ed4607ad5ca
parentf1876ae65c79d5eef5af98dc4e990c1389b0e718 (diff)
Add missing mouse button counters updatefc/day-of-tentacle-mouse-regression-fix-1
-rw-r--r--src/ints/mouse_dos_driver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ints/mouse_dos_driver.cpp b/src/ints/mouse_dos_driver.cpp
index 5b95c6897..dbbf66788 100644
--- a/src/ints/mouse_dos_driver.cpp
+++ b/src/ints/mouse_dos_driver.cpp
@@ -926,11 +926,13 @@ bool MOUSEDOS_UpdateButtons(const MouseButtons12S new_buttons_12S)
auto mark_pressed = [](const uint8_t idx) {
state.last_pressed_x[idx] = get_pos_x();
state.last_pressed_y[idx] = get_pos_y();
+ ++state.times_pressed[idx];
};
auto mark_released = [](const uint8_t idx) {
state.last_released_x[idx] = get_pos_x();
state.last_released_y[idx] = get_pos_y();
+ ++state.times_released[idx];
};
if (new_buttons_12S.left && !buttons.left)