From 5a4e1f3b61bb80a43c2bb5849a834fdfd6696029 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sat, 2 Jul 2022 22:07:02 +0200 Subject: [PATCH] Update Program.md --- docs/objects/Program.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/objects/Program.md b/docs/objects/Program.md index 1e52f96..4cef915 100644 --- a/docs/objects/Program.md +++ b/docs/objects/Program.md @@ -114,6 +114,7 @@ Injects multiple events #### Usage: * injects a multiple char events by clicking a button + ```lua local mainFrame = basalt.createFrame("myFirstFrame"):show() local aProgram = mainFrame:addProgram("myFirstProgram"):execute("rom/programs/shell.lua"):show() @@ -126,6 +127,7 @@ local events = { mainFrame:addButton("myFirstButton"):setText("inject"):onClick(function() aProgram:injectEvents(events) end):show() ``` + ## getQueuedEvents If the program is paused, incomming events will be inserted into a queued events table. As soon as the program is unpaused, the queued events table will be empty