Use button constant for modifier

This commit is contained in:
Christian Semmler 2024-04-06 15:30:32 -04:00
parent 4b4f2f321c
commit 458d4b0988
No known key found for this signature in database
GPG key ID: 086DAA1360BEEE5C

View file

@ -511,10 +511,10 @@ MxBool LegoInputManager::FUN_1005cdf0(LegoEventNotificationParam& p_param)
break; break;
case c_notificationMouseMove: case c_notificationMouseMove:
if (m_unk0x195) { 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_unk0x80) {
if (m_unk0x195) { if (m_unk0x195) {
m_x = p_param.GetX(); m_x = p_param.GetX();
@ -547,7 +547,7 @@ MxBool LegoInputManager::FUN_1005cdf0(LegoEventNotificationParam& p_param)
m_unk0x80 = TRUE; m_unk0x80 = TRUE;
p_param.SetX(m_x); p_param.SetX(m_x);
p_param.SetY(m_y); p_param.SetY(m_y);
p_param.SetModifier(1); p_param.SetModifier(LegoEventNotificationParam::c_lButtonState);
p_param.SetType(c_notificationDragEnd); p_param.SetType(c_notificationDragEnd);
result = 1; result = 1;
} }