mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-28 02:44:18 +00:00
Rename c_notificationDrag* enum (#1191)
* Improve functions with drag notifications * Rename drag notifications * A couple more addrs
This commit is contained in:
@@ -43,26 +43,6 @@ MxLong LegoCameraController::Notify(MxParam& p_param)
|
||||
{
|
||||
switch (((MxNotificationParam&) p_param).GetNotification()) {
|
||||
case c_notificationDragEnd: {
|
||||
if ((((LegoEventNotificationParam&) p_param).GetModifier()) & LegoEventNotificationParam::c_lButtonState) {
|
||||
OnLButtonDown(MxPoint32(
|
||||
((LegoEventNotificationParam&) p_param).GetX(),
|
||||
((LegoEventNotificationParam&) p_param).GetY()
|
||||
));
|
||||
}
|
||||
else if ((((LegoEventNotificationParam&) p_param).GetModifier()) & LegoEventNotificationParam::c_rButtonState) {
|
||||
OnRButtonDown(MxPoint32(
|
||||
((LegoEventNotificationParam&) p_param).GetX(),
|
||||
((LegoEventNotificationParam&) p_param).GetY()
|
||||
));
|
||||
}
|
||||
} break;
|
||||
case c_notificationDragStart: {
|
||||
OnMouseMove(
|
||||
((LegoEventNotificationParam&) p_param).GetModifier(),
|
||||
MxPoint32(((LegoEventNotificationParam&) p_param).GetX(), ((LegoEventNotificationParam&) p_param).GetY())
|
||||
);
|
||||
} break;
|
||||
case c_notificationDrag: {
|
||||
if (((((LegoEventNotificationParam&) p_param).GetModifier()) & LegoEventNotificationParam::c_lButtonState) ==
|
||||
0) {
|
||||
OnLButtonUp(MxPoint32(
|
||||
@@ -77,6 +57,26 @@ MxLong LegoCameraController::Notify(MxParam& p_param)
|
||||
));
|
||||
}
|
||||
} break;
|
||||
case c_notificationDragStart: {
|
||||
if ((((LegoEventNotificationParam&) p_param).GetModifier()) & LegoEventNotificationParam::c_lButtonState) {
|
||||
OnLButtonDown(MxPoint32(
|
||||
((LegoEventNotificationParam&) p_param).GetX(),
|
||||
((LegoEventNotificationParam&) p_param).GetY()
|
||||
));
|
||||
}
|
||||
else if ((((LegoEventNotificationParam&) p_param).GetModifier()) & LegoEventNotificationParam::c_rButtonState) {
|
||||
OnRButtonDown(MxPoint32(
|
||||
((LegoEventNotificationParam&) p_param).GetX(),
|
||||
((LegoEventNotificationParam&) p_param).GetY()
|
||||
));
|
||||
}
|
||||
} break;
|
||||
case c_notificationDrag: {
|
||||
OnMouseMove(
|
||||
((LegoEventNotificationParam&) p_param).GetModifier(),
|
||||
MxPoint32(((LegoEventNotificationParam&) p_param).GetX(), ((LegoEventNotificationParam&) p_param).GetY())
|
||||
);
|
||||
} break;
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user