Mention :on-timer in the defscreen docstring

This commit is contained in:
oakes
2014-05-10 01:04:01 -04:00
parent 00a9f398a0
commit 8932480dbe

View File

@@ -128,6 +128,10 @@ via the screen map.
entities)
:on-pause ; the screen paused (mobile only)
(fn [screen entities]
entities)
:on-timer ; a timer created with add-timer! executed
(fn [screen entities]
(println (:id screen)) ; the id supplied when the timer was created
entities))
; input functions