mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-08 23:06:58 -04:00
Added a link to the signals page, so that it can be found more easily.
parent
c1a0b0a3da
commit
37f0a6c781
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user