Savestates/Mouse: Fix Mouse handler use

This commit is contained in:
Elad Ashkenazi 2024-06-20 19:23:36 +03:00
parent 649714429b
commit bceaf46e2f
3 changed files with 9 additions and 8 deletions

View file

@ -65,11 +65,17 @@ private:
class raw_mouse_handler final : public MouseHandlerBase
{
public:
raw_mouse_handler(bool is_for_gui = false);
using MouseHandlerBase::MouseHandlerBase;
virtual ~raw_mouse_handler();
void Init(const u32 max_connect) override;
void SetIsForGui(bool value)
{
m_is_for_gui = value;
}
const std::map<void*, raw_mouse>& get_mice() const { return m_raw_mice; };
void set_mouse_press_callback(std::function<void(const std::string&, s32, bool)> cb)