Browse Source

fix uninit values in applet and mouse

pull/114/head
Esther1024 10 months ago
parent
commit
6ce25e735b
  1. 2
      src/hid_core/resources/applet_resource.h
  2. 2
      src/input_common/drivers/mouse.h

2
src/hid_core/resources/applet_resource.h

@ -119,7 +119,7 @@ private:
std::array<AruidData, AruidIndexMax> data{};
std::array<SharedMemoryHolder, AruidIndexMax> shared_memory_holder{};
s32 ref_counter{};
u64 active_vibration_aruid;
u64 active_vibration_aruid = 0;
Core::System& system;
};

2
src/input_common/drivers/mouse.h

@ -108,7 +108,7 @@ private:
Common::Vec2<float> last_mouse_change;
Common::Vec3<float> last_motion_change;
Common::Vec2<int> wheel_position;
bool button_pressed;
bool button_pressed = false;
std::jthread update_thread;
};

Loading…
Cancel
Save