From 8eb2a97f365c0d19b55aec0686c3c0b659703ce5 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 3 Feb 2024 16:25:02 -0500 Subject: [PATCH] Fix HandleKeyPress --- LEGO1/lego/legoomni/include/police.h | 2 +- LEGO1/lego/legoomni/src/police/police.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/include/police.h b/LEGO1/lego/legoomni/include/police.h index 52c57c8c..798fc0a2 100644 --- a/LEGO1/lego/legoomni/include/police.h +++ b/LEGO1/lego/legoomni/include/police.h @@ -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 diff --git a/LEGO1/lego/legoomni/src/police/police.cpp b/LEGO1/lego/legoomni/src/police/police.cpp index 36681206..059d4473 100644 --- a/LEGO1/lego/legoomni/src/police/police.cpp +++ b/LEGO1/lego/legoomni/src/police/police.cpp @@ -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;