type MyListenerAction = {}
function init(self: MyListenerAction, context: Context): boolean
return true
end
-- Add your transition logic here.
-- `evaluate` is fired every frame while the transition is active.
-- Returning false prevents a transition, true allows a transition.
function perform(self: MyListenerAction, pointerEvent: PointerEvent)
return true
end
-- Return a factory function that Rive uses to build the Listener Action instance.
return function(): ListenerAction<MyListenerAction>
return {
init = init,
perform = perform,
}
end