2023-10-25 16:51:59 -04:00
|
|
|
#ifndef LEGOEVENTNOTIFICATIONPARAM_H
|
|
|
|
#define LEGOEVENTNOTIFICATIONPARAM_H
|
|
|
|
|
|
|
|
#include "mxnotificationparam.h"
|
|
|
|
#include "mxtypes.h"
|
|
|
|
|
2024-01-06 12:56:15 -05:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
2024-05-03 12:19:12 -04:00
|
|
|
class LegoROI;
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d6aa0
|
2024-01-14 16:28:46 -05:00
|
|
|
// SIZE 0x20
|
2023-10-25 16:51:59 -04:00
|
|
|
class LegoEventNotificationParam : public MxNotificationParam {
|
|
|
|
public:
|
2024-03-21 10:39:23 -04:00
|
|
|
enum {
|
2024-06-01 10:07:58 -04:00
|
|
|
c_lButtonState = 1,
|
|
|
|
c_rButtonState = 2,
|
|
|
|
c_modKey1 = 4,
|
|
|
|
c_modKey2 = 8,
|
2024-03-21 10:39:23 -04:00
|
|
|
};
|
|
|
|
|
2024-01-27 17:57:42 -05:00
|
|
|
// FUNCTION: LEGO1 0x10028690
|
2024-04-22 08:11:38 -04:00
|
|
|
MxNotificationParam* Clone() const override
|
2024-01-27 17:57:42 -05:00
|
|
|
{
|
|
|
|
LegoEventNotificationParam* clone =
|
|
|
|
new LegoEventNotificationParam(m_type, m_sender, m_modifier, m_x, m_y, m_key);
|
2024-01-28 09:20:21 -05:00
|
|
|
clone->m_roi = m_roi;
|
2024-01-27 17:57:42 -05:00
|
|
|
return clone;
|
2024-01-29 17:30:20 -05:00
|
|
|
} // vtable+0x04
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
LegoEventNotificationParam() : MxNotificationParam(c_notificationType0, NULL) {}
|
|
|
|
LegoEventNotificationParam(
|
2023-11-07 03:30:26 -05:00
|
|
|
NotificationId p_type,
|
|
|
|
MxCore* p_sender,
|
|
|
|
MxU8 p_modifier,
|
|
|
|
MxS32 p_x,
|
|
|
|
MxS32 p_y,
|
|
|
|
MxU8 p_key
|
|
|
|
)
|
2024-01-28 09:20:21 -05:00
|
|
|
: MxNotificationParam(p_type, p_sender), m_modifier(p_modifier), m_x(p_x), m_y(p_y), m_key(p_key), m_roi(NULL)
|
2023-11-07 03:30:26 -05:00
|
|
|
{
|
|
|
|
}
|
2023-10-25 16:51:59 -04:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
LegoROI* GetROI() { return m_roi; }
|
|
|
|
MxU8 GetModifier() { return m_modifier; }
|
|
|
|
MxU8 GetKey() const { return m_key; }
|
2024-03-21 10:39:23 -04:00
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10012190
|
2024-09-14 19:14:11 -04:00
|
|
|
// FUNCTION: BETA10 0x10024210
|
2024-07-04 19:06:32 -04:00
|
|
|
MxS32 GetX() const { return m_x; }
|
2024-03-21 10:39:23 -04:00
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100121a0
|
2024-09-14 19:14:11 -04:00
|
|
|
// FUNCTION: BETA10 0x10024240
|
2024-07-04 19:06:32 -04:00
|
|
|
MxS32 GetY() const { return m_y; }
|
2023-10-25 16:51:59 -04:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetROI(LegoROI* p_roi) { m_roi = p_roi; }
|
2024-12-04 18:19:48 -05:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x1007d620
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetModifier(MxU8 p_modifier) { m_modifier = p_modifier; }
|
2024-12-04 18:19:48 -05:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x1007d6b0
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetKey(MxU8 p_key) { m_key = p_key; }
|
2024-12-04 18:19:48 -05:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x1007d650
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetX(MxS32 p_x) { m_x = p_x; }
|
2024-12-04 18:19:48 -05:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x1007d680
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetY(MxS32 p_y) { m_y = p_y; }
|
2024-01-28 09:20:21 -05:00
|
|
|
|
2023-10-25 16:51:59 -04:00
|
|
|
protected:
|
|
|
|
MxU8 m_modifier; // 0x0c
|
|
|
|
MxS32 m_x; // 0x10
|
|
|
|
MxS32 m_y; // 0x14
|
|
|
|
MxU8 m_key; // 0x18
|
2024-01-28 09:20:21 -05:00
|
|
|
LegoROI* m_roi; // 0x1c
|
2023-10-25 16:51:59 -04:00
|
|
|
};
|
|
|
|
|
2024-01-14 16:28:46 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x10028770
|
|
|
|
// LegoEventNotificationParam::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x100287e0
|
|
|
|
// LegoEventNotificationParam::~LegoEventNotificationParam
|
|
|
|
|
2023-10-25 16:51:59 -04:00
|
|
|
#endif // LEGOEVENTNOTIFICATIONPARAM_H
|