1#ifndef LEGOEVENTNOTIFICATIONPARAM_H
2#define LEGOEVENTNOTIFICATIONPARAM_H
Notification parameter class for LEGO event notifications such as mouse events and modifier keys.
MxS32 GetY() const
Returns Y (vertical) coordinate for the event, usually screen-relative in pixels.
MxS32 m_x
X position (horizontal pixel coordinate) for event, typically relative to window/screen.
void SetX(MxS32 p_x)
Sets the X (horizontal) coordinate for the event.
MxU8 GetModifier()
Returns modifier bitmask for this event (mouse/keyboard state).
LegoROI * GetROI()
Returns the ROI (3D Object) associated with this event, if any.
void SetKey(MxU8 p_key)
Sets the keycode for the event.
MxU8 m_modifier
Bitmask of button/modifier state at the time of the event.
void SetY(MxS32 p_y)
Sets the Y (vertical) coordinate for the event.
MxS32 m_y
Y position (vertical pixel coordinate) for event, typically relative to window/screen.
LegoEventNotificationParam(NotificationId p_type, MxCore *p_sender, MxU8 p_modifier, MxS32 p_x, MxS32 p_y, MxU8 p_key)
Constructor with all parameter fields for event reporting.
MxU8 GetKey() const
Returns the keycode for this event, or 0 if not used.
MxU8 m_key
Key code of event, if any (else 0).
MxS32 GetX() const
Returns X (horizontal) coordinate for the event, usually screen-relative in pixels.
LegoROI * m_roi
Reference to involved world object (ROI), if any (else NULL).
void SetModifier(MxU8 p_modifier)
Sets the modifier state bitmask for the event.
void SetROI(LegoROI *p_roi)
Sets the ROI reference (object involved in the event).
MxNotificationParam * Clone() const override
Creates a deep copy of this notification parameter object.
LegoEventNotificationParam()
Default constructor.
[AI] Represents a Real-time Object Instance enriched with LEGO-specific functionality.
[AI] Base virtual class for all Mindscape engine (Mx) objects.
[AI] Parameter object representing a single notification or event, carrying an identifier and sender ...
MxCore * m_sender
[AI] Pointer to the MxCore instance that sent or originated this notification.
NotificationId m_type
[AI] Type of notification/event carried by this object (see NotificationId).
#define NULL
[AI] Null pointer value (C/C++ semantics).
NotificationId
Several of those should be defined in LegoOmni.
@ c_notificationType0
[AI] Undefined/Generic notification type [AI]