mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-04 19:36:27 +00:00
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 <danishreyjavik@outlook.com> Co-committed-by: Esther1024 <danishreyjavik@outlook.com>
This commit is contained in:
@@ -119,7 +119,7 @@ private:
|
|||||||
std::array<AruidData, AruidIndexMax> data{};
|
std::array<AruidData, AruidIndexMax> data{};
|
||||||
std::array<SharedMemoryHolder, AruidIndexMax> shared_memory_holder{};
|
std::array<SharedMemoryHolder, AruidIndexMax> shared_memory_holder{};
|
||||||
s32 ref_counter{};
|
s32 ref_counter{};
|
||||||
u64 active_vibration_aruid;
|
u64 active_vibration_aruid = 0;
|
||||||
|
|
||||||
Core::System& system;
|
Core::System& system;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ private:
|
|||||||
Common::Vec2<float> last_mouse_change;
|
Common::Vec2<float> last_mouse_change;
|
||||||
Common::Vec3<float> last_motion_change;
|
Common::Vec3<float> last_motion_change;
|
||||||
Common::Vec2<int> wheel_position;
|
Common::Vec2<int> wheel_position;
|
||||||
bool button_pressed;
|
bool button_pressed = false;
|
||||||
std::jthread update_thread;
|
std::jthread update_thread;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user