diff --git a/API-Event.md b/API-Event.md index 60504d7..3030741 100644 --- a/API-Event.md +++ b/API-Event.md @@ -1,4 +1,4 @@ -This API provides a rudimentary event system. It is primarily intended to be used by libraries, to allow them to be notified of 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` Register a new event listener that should be called for events with the specified name. When registering for signal events, this is the name of the signal. Returns `true` if the listener was successfully registered, `false` if it already was registered for this event type.