mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 01:28:30 -05:00
Use button constant for modifier
This commit is contained in:
parent
4b4f2f321c
commit
458d4b0988
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue