From ea7b9519c7a5b3f27f16a1be9550ca69aa2d308b Mon Sep 17 00:00:00 2001 From: Esther1024 Date: Mon, 19 May 2025 19:11:06 +0000 Subject: fix uninit values in applet and mouse (#114) read before written; initialize so valgrind stops complaining Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/114 Co-authored-by: Esther1024 Co-committed-by: Esther1024 --- src/input_common/drivers/mouse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_common/drivers/mouse.h') diff --git a/src/input_common/drivers/mouse.h b/src/input_common/drivers/mouse.h index 2b93a40b9c..124b6f3bd5 100644 --- a/src/input_common/drivers/mouse.h +++ b/src/input_common/drivers/mouse.h @@ -108,7 +108,7 @@ private: Common::Vec2 last_mouse_change; Common::Vec3 last_motion_change; Common::Vec2 wheel_position; - bool button_pressed; + bool button_pressed = false; std::jthread update_thread; }; -- cgit v1.2.3