mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 15:21:15 +00:00
Rename drag notifications
This commit is contained in:
parent
587782450d
commit
abd8b12e2d
@ -42,7 +42,7 @@ MxResult LegoCameraController::Create()
|
||||
MxLong LegoCameraController::Notify(MxParam& p_param)
|
||||
{
|
||||
switch (((MxNotificationParam&) p_param).GetNotification()) {
|
||||
case c_notificationDrag: {
|
||||
case c_notificationDragEnd: {
|
||||
if (((((LegoEventNotificationParam&) p_param).GetModifier()) & LegoEventNotificationParam::c_lButtonState) ==
|
||||
0) {
|
||||
OnLButtonUp(MxPoint32(
|
||||
@ -57,7 +57,7 @@ MxLong LegoCameraController::Notify(MxParam& p_param)
|
||||
));
|
||||
}
|
||||
} break;
|
||||
case c_notificationDragEnd: {
|
||||
case c_notificationDragStart: {
|
||||
if ((((LegoEventNotificationParam&) p_param).GetModifier()) & LegoEventNotificationParam::c_lButtonState) {
|
||||
OnLButtonDown(MxPoint32(
|
||||
((LegoEventNotificationParam&) p_param).GetX(),
|
||||
@ -71,7 +71,7 @@ MxLong LegoCameraController::Notify(MxParam& p_param)
|
||||
));
|
||||
}
|
||||
} break;
|
||||
case c_notificationDragStart: {
|
||||
case c_notificationDrag: {
|
||||
OnMouseMove(
|
||||
((LegoEventNotificationParam&) p_param).GetModifier(),
|
||||
MxPoint32(((LegoEventNotificationParam&) p_param).GetX(), ((LegoEventNotificationParam&) p_param).GetY())
|
||||
|
||||
@ -379,7 +379,7 @@ MxBool LegoInputManager::ProcessOneEvent(LegoEventNotificationParam& p_param)
|
||||
if (p_param.GetKey() == VK_SHIFT) {
|
||||
if (m_unk0x195) {
|
||||
m_unk0x80 = FALSE;
|
||||
p_param.SetNotification(c_notificationDrag);
|
||||
p_param.SetNotification(c_notificationDragEnd);
|
||||
|
||||
if (m_camera) {
|
||||
m_camera->Notify(p_param);
|
||||
@ -506,7 +506,7 @@ MxBool LegoInputManager::FUN_1005cdf0(LegoEventNotificationParam& p_param)
|
||||
StopAutoDragTimer();
|
||||
|
||||
if (m_unk0x80) {
|
||||
p_param.SetNotification(c_notificationDrag);
|
||||
p_param.SetNotification(c_notificationDragEnd);
|
||||
result = TRUE;
|
||||
}
|
||||
else if (m_unk0x81) {
|
||||
@ -538,14 +538,14 @@ MxBool LegoInputManager::FUN_1005cdf0(LegoEventNotificationParam& p_param)
|
||||
if (m_unk0x195 || t > m_unk0x74) {
|
||||
StopAutoDragTimer();
|
||||
m_unk0x80 = TRUE;
|
||||
p_param.SetNotification(c_notificationDragEnd);
|
||||
p_param.SetNotification(c_notificationDragStart);
|
||||
result = TRUE;
|
||||
p_param.SetX(m_x);
|
||||
p_param.SetY(m_y);
|
||||
}
|
||||
}
|
||||
else {
|
||||
p_param.SetNotification(c_notificationDragStart);
|
||||
p_param.SetNotification(c_notificationDrag);
|
||||
result = TRUE;
|
||||
}
|
||||
}
|
||||
@ -559,7 +559,7 @@ MxBool LegoInputManager::FUN_1005cdf0(LegoEventNotificationParam& p_param)
|
||||
p_param.SetX(m_x);
|
||||
p_param.SetY(m_y);
|
||||
p_param.SetModifier(LegoEventNotificationParam::c_lButtonState);
|
||||
p_param.SetNotification(c_notificationDragEnd);
|
||||
p_param.SetNotification(c_notificationDragStart);
|
||||
result = TRUE;
|
||||
}
|
||||
else {
|
||||
|
||||
@ -20,9 +20,9 @@ enum NotificationId {
|
||||
c_notificationButtonDown = 9, // 100d6aa0
|
||||
c_notificationMouseMove = 10, // 100d6aa0
|
||||
c_notificationClick = 11, // 100d6aa0
|
||||
c_notificationDragEnd = 12,
|
||||
c_notificationDragStart = 13,
|
||||
c_notificationDrag = 14,
|
||||
c_notificationDragStart = 12,
|
||||
c_notificationDrag = 13,
|
||||
c_notificationDragEnd = 14,
|
||||
c_notificationTimer = 15, // 100d6aa0
|
||||
c_notificationControl = 17,
|
||||
c_notificationEndAnim = 18, // 100d7e80
|
||||
|
||||
Loading…
Reference in New Issue
Block a user