Updated API Event (markdown)

Vexatos 2014-07-13 05:25:41 -07:00
parent 04b4abe03e
commit 932263fdea

@ -1,3 +1,10 @@
[![](http://i.imgur.com/GKcszRV.png)](http://ocdoc.cil.li/)
For those that don't like images: the wiki has moved to a new place, http://ocdoc.cil.li/.
*This wiki will no longer be updated.*
****
This API provides a rudimentary event system. It is primarily intended to be used by libraries, to allow them to be notified of [[signals|Signals]]. For example, this is used to automatically bind the primary screen to the primary GPU, to check whether the [[terminal|API/Term]] is available, and to execute autorun programs on newly installed file systems. This API provides a rudimentary event system. It is primarily intended to be used by libraries, to allow them to be notified of [[signals|Signals]]. For example, this is used to automatically bind the primary screen to the primary GPU, to check whether the [[terminal|API/Term]] is available, and to execute autorun programs on newly installed file systems.
- `event.listen(name: string, callback: function): boolean` - `event.listen(name: string, callback: function): boolean`