Maybe some users of this library are surprised by the lack of mouse events for the actors and groups of SGE, contrary to their counterpart in LibGdx. There's only a sgeInput class to detect all events at the SGE level. It's by design. You're invited to use another approach for the handling of mouse events.
Traditionally, you have a dispatching function in the library code that tries to find which object currently on screen is concerned by the mouse event, then raises the event for this object (with the risk of targeting the wrong object because rules may apply that are specific to your game). In SGE, you have to detect yourself the right object. For example, if you want to detect only visible groups, this code will get you all groups under the mouse position, orderer by Z-order (the topmost being the first):
Sub SGE_MousePressed(EventData As MouseEvent)
Dim MouseClick As sgePoint2D = SGE.Input.MouseToCanvas(EventData.X, EventData.Y)
Dim ClickedList As List = SGE.Root.FindAtPos2(MouseClick, SGE.Root.FIND_ONLY_GROUPS, True)
Dim ClickedGroup As sgeGroup
If ClickedList.Size > 0 Then
ClickedGroup = ClickedList.Get(0)
End If
If ClickedGroup.IsInitialized Then
'There's a group found under the mouse. Your program can call the appropriate function to handle this event.
...
End Sub
Imagine that you want to prevent a great number of groups and actors from receiving events at a given time (because the player has not found yet the sword of light to slash monsters with furious mouse clicks, or because you want to display some kind of modal dialog, etc.), the usual approach is to add a restriction in the event handlers of all objects (something like "if not concerned then return"). Problem: it's hard to maintain in a complex project. You should consider that the event handler specific to actors or groups always receives a valid event and has to deal with. It means that all restrictions have to be handled by your dispatching code. For example:
...
If ClickedGroup.IsInitialized Then
'There's a group found under the mouse. Your program can call the appropriate function to handle this event.
If MyModalDialogIsDisplayed = True Then
'My modal dialog has a button and, of course, the player is allowed to interact with it. Not with the other objects on screen.
'The class that created the button and handles clicks on it is stored in the Tag property.
if ClickedGroup.Tag is clsDialogButton then
Dim Button As clsDialogButton = ClickedGroup.Tag
Button.MousePressed(EventData)
Else
Return
End if
End if
...
End if
End Sub
In the above example, you see that you don't have to write "If MyModalDialogIsDisplayed = True Then Return" everywhere, or to add an invisible object to block events like I saw in many apps. Moreover, all rules are in a single place. In my current game, I just had to add three lines of code in my dispatcher to avoid handling events when some animations are in progress, and only one line for the paused state ("If Paused Then Return", and exactly the same line in SGE_Update to freeze everything).