mirror of
https://github.com/kikito/beholder.lua.git
synced 2024-12-16 00:34:21 +00:00
updated readme
This commit is contained in:
parent
88d5b837e8
commit
e86555de7f
@ -100,6 +100,10 @@ If you want to detect all signals raised (i.e. for logging and debugging) you ca
|
||||
|
||||
<pre>Beholder:observe(function(...) log("Event triggered", ...) end)</pre>
|
||||
|
||||
A quick and dirty way of dumping all events in the standard output is just observing the nil event with @print@:
|
||||
|
||||
<pre>Beholder:observe(print)</pre>
|
||||
|
||||
If you want to trigger the events attached only to the nil event, you can do so by calling trigger without params:
|
||||
|
||||
<pre>Beholder:trigger()</pre>
|
||||
|
Loading…
Reference in New Issue
Block a user