push changes

This commit is contained in:
Misha 2024-01-27 17:03:58 -05:00
parent e3275ad041
commit 8cd7fac16a
No known key found for this signature in database
GPG Key ID: 8441D12AEF33FED8
2 changed files with 44 additions and 6 deletions

View File

@ -48,6 +48,27 @@ class LegoNotifyList : public MxPtrList<MxCore> {
LegoNotifyList(MxBool p_ownership = FALSE) : MxPtrList<MxCore>(p_ownership) {}
};
// VTABLE: LEGO1 0x100d6ac0
// class MxListCursor<MxCore *>
// VTABLE: LEGO1 0x100d6ad8
// class MxPtrListCursor<MxCore>
// VTABLE: LEGO1 0x100d6aa8
class LegoNotifyListCursor : public MxPtrListCursor<MxCore> {
public:
LegoNotifyListCursor(LegoNotifyList* p_list) : MxPtrListCursor<MxCore>(p_list) {}
};
// SYNTHETIC: LEGO1 0x10028fd0
// LegoNotifyListCursor::`scalar deleting destructor'
// SYNTHETIC: LEGO1 0x10029090
// MxListCursor<MxCore *>::`scalar deleting destructor'
// SYNTHETIC: LEGO1 0x10029100
// MxPtrListCursor<MxCore>::`scalar deleting destructor'
// VTABLE: LEGO1 0x100d8760
// SIZE 0x338
class LegoInputManager : public MxPresenter {
@ -187,4 +208,13 @@ class LegoInputManager : public MxPresenter {
// TEMPLATE: LEGO1 0x1005d010
// MxListEntry<LegoEventNotificationParam>::GetValue
// TEMPLATE: LEGO1 0x10029170
// MxListCursor<MxCore *>::~MxListCursor<MxCore *>
// TEMPLATE: LEGO1 0x10029040
// MxPtrListCursor<MxCore>::~MxPtrListCursor<MxCore>
// TEMPLATE: LEGO1 0x100291c0
// LegoNotifyListCursor::~LegoNotifyListCursor
#endif // LEGOINPUTMANAGER_H

View File

@ -211,16 +211,24 @@ MxResult LegoInputManager::GetJoystickState(
return FAILURE;
}
// STUB: LEGO1 0x1005c470
void LegoInputManager::Register(MxCore*)
// FUNCTION: LEGO1 0x1005c470
void LegoInputManager::Register(MxCore* p_notify)
{
// TODO
MxAutoLocker lock(&m_criticalSection);
LegoNotifyListCursor cursor(m_keyboardNotifyList);
if (!cursor.Find(p_notify))
m_keyboardNotifyList->Append(p_notify);
}
// STUB: LEGO1 0x1005c5c0
void LegoInputManager::UnRegister(MxCore*)
// FUNCTION: LEGO1 0x1005c5c0
void LegoInputManager::UnRegister(MxCore* p_notify)
{
// TODO
MxAutoLocker lock(&m_criticalSection);
LegoNotifyListCursor cursor(m_keyboardNotifyList);
if (cursor.Find(p_notify))
cursor.Detach();
}
// FUNCTION: LEGO1 0x1005c700