pullEvent.md 752 B

Pulls an event from the events stack.

This function is used internally by DiskOS to run the default event loop, which calls the callback functions that start by _ like _update and _mousepressed, etc..

Events in LIKO-12 may be pulled directly, or pulled from a stack if there are already, the stack may fill up when CPU.sleep or GPU.flip are called.


Syntax:

event, a,b,c,d,e,f = pullEvent()

Returns:

  • event (String): The event name, can be any of the callbacks names without the "_" at the start.
  • a,b,c,d,e,f (Any): The arguments of the event.

See also: