Fix HandleKeyPress

This commit is contained in:
Christian Semmler 2024-02-03 16:25:02 -05:00
parent 62c1e7e0f9
commit 8eb2a97f36
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class Police : public LegoWorld {
private:
MxLong HandleNotification11(MxNotificationParam& p_param);
MxLong HandleEndAction(MxEndActionNotificationParam& p_param);
MxLong HandleKeyPress(MxS8 p_key);
MxLong HandleKeyPress(LegoEventNotificationParam& p_param);
Radio m_radio; // 0xf8
PoliceState* m_policeState; // 0x108

View File

@ -71,7 +71,7 @@ MxLong Police::Notify(MxParam& p_param)
result = HandleEndAction((MxEndActionNotificationParam&) p_param);
break;
case c_notificationKeyPress:
result = HandleKeyPress(((LegoEventNotificationParam&) p_param).GetKey());
result = HandleKeyPress(((LegoEventNotificationParam&) p_param));
break;
case c_notificationType11:
result = HandleNotification11((MxNotificationParam&) p_param);
@ -108,7 +108,7 @@ MxLong Police::HandleEndAction(MxEndActionNotificationParam& p_param)
}
// STUB: LEGO1 0x1005e6f0
MxLong Police::HandleKeyPress(MxS8 p_key)
MxLong Police::HandleKeyPress(LegoEventNotificationParam& p_param)
{
// TODO
return 0;