From 458d4b0988ee5f07dfbdcbf062a0655997906515 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 6 Apr 2024 15:30:32 -0400 Subject: [PATCH] Use button constant for modifier --- LEGO1/lego/legoomni/src/input/legoinputmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/src/input/legoinputmanager.cpp b/LEGO1/lego/legoomni/src/input/legoinputmanager.cpp index 334d24ee..c75584ae 100644 --- a/LEGO1/lego/legoomni/src/input/legoinputmanager.cpp +++ b/LEGO1/lego/legoomni/src/input/legoinputmanager.cpp @@ -511,10 +511,10 @@ MxBool LegoInputManager::FUN_1005cdf0(LegoEventNotificationParam& p_param) break; case c_notificationMouseMove: if (m_unk0x195) { - p_param.SetModifier(1); + p_param.SetModifier(LegoEventNotificationParam::c_lButtonState); } - if ((m_unk0x195 || m_unk0x81) && p_param.GetModifier() & 1) { + if ((m_unk0x195 || m_unk0x81) && p_param.GetModifier() & LegoEventNotificationParam::c_lButtonState) { if (!m_unk0x80) { if (m_unk0x195) { m_x = p_param.GetX(); @@ -547,7 +547,7 @@ MxBool LegoInputManager::FUN_1005cdf0(LegoEventNotificationParam& p_param) m_unk0x80 = TRUE; p_param.SetX(m_x); p_param.SetY(m_y); - p_param.SetModifier(1); + p_param.SetModifier(LegoEventNotificationParam::c_lButtonState); p_param.SetType(c_notificationDragEnd); result = 1; }