Difference between revisions of "Sprite:setStopEventPropagation"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Selects the sets of input events that will not be propagated to parent Sprite if this Sprite is visible.
 
Selects the sets of input events that will not be propagated to parent Sprite if this Sprite is visible.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Sprite:setStopEventPropagation(mask)
 
Sprite:setStopEventPropagation(mask)
 
</source>
 
</source>

Revision as of 14:31, 13 July 2023

Available since: Gideros 2019.9
Class: Sprite

Description

Selects the sets of input events that will not be propagated to parent Sprite if this Sprite is visible. <syntaxhighlight lang="lua"> Sprite:setStopEventPropagation(mask) </source>

Parameters

mask: (bitmask or boolean) a combination of Sprite.EVENTMASK_MOUSE, Sprite.EVENTMASK_TOUCH or Sprite.EVENTMASK_KEY, or false/true for none/all event stopped