Event.new: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
Line 5: Line 5:
Creates a new [[Event]] object to be dispatched from an [[EventDispatcher]].
Creates a new [[Event]] object to be dispatched from an [[EventDispatcher]].


<source lang="lua">
<syntaxhighlight lang="lua">
(any), (any) = Event.new(type)
(any), (any) = Event.new(type)
</source>
</source>

Revision as of 13:26, 13 July 2023

Available since: Gideros 2011.6
Class: Event

Description

Creates a new Event object to be dispatched from an EventDispatcher.

<syntaxhighlight lang="lua"> (any), (any) = Event.new(type) </source>

Parameters

type: (string)

Return values

Returns (any) New Event object.
Returns (any) New Event object.