@@ -563,3 +563,8 @@ of key-value pairs, which will be given to the function via its screen map.
|
|||||||
screen-fn (-> screen-object :options (get fn-name))]
|
screen-fn (-> screen-object :options (get fn-name))]
|
||||||
(apply execute-fn! screen-fn options)
|
(apply execute-fn! screen-fn options)
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
|
(defn run!
|
||||||
|
"Deprecated. Please use `screen!` instead."
|
||||||
|
[& args]
|
||||||
|
(apply screen! args))
|
||||||
|
|||||||
@@ -101,6 +101,8 @@
|
|||||||
:fps (graphics! :get-frames-per-second)
|
:fps (graphics! :get-frames-per-second)
|
||||||
:fullscreen? (graphics! :is-fullscreen)
|
:fullscreen? (graphics! :is-fullscreen)
|
||||||
:touched? (input! :is-touched)
|
:touched? (input! :is-touched)
|
||||||
|
:x (input! :get-x) ; deprecated, use :point-x instead
|
||||||
|
:y (input! :get-y) ; deprecated, use :point-y instead (it is flipped)
|
||||||
:point-x (input! :get-x (or arg 0))
|
:point-x (input! :get-x (or arg 0))
|
||||||
:point-y (- (graphics! :get-height) (input! :get-y (or arg 0)))
|
:point-y (- (graphics! :get-height) (input! :get-y (or arg 0)))
|
||||||
(u/throw-key-not-found k)))
|
(u/throw-key-not-found k)))
|
||||||
|
|||||||
Reference in New Issue
Block a user