Rename input methods for consistency

This commit is contained in:
oakes
2014-01-10 14:44:18 -05:00
parent 5ddc35ccc7
commit 8f18298fa5
2 changed files with 30 additions and 36 deletions

View File

@@ -71,8 +71,8 @@
:pause #(execute-fn! on-pause)
:resize #(execute-fn! on-resize)
:resume #(execute-fn! on-resume)
:input (input* options execute-fn!)
:gesture (gesture* options execute-fn!)}))
:input-processor (input-processor options execute-fn!)
:gesture-detector (gesture-detector options execute-fn!)}))
(defmacro defscreen
[n & {:keys [] :as options}]
@@ -97,8 +97,8 @@
(let [add-inputs! (fn []
(input! :setInputProcessor (InputMultiplexer.))
(doseq [screen screens]
(add-input! (:input screen))
(add-input! (:gesture screen))))
(add-input! (:input-processor screen))
(add-input! (:gesture-detector screen))))
run-fn! (fn [k & args]
(doseq [screen screens]
(apply (get screen k) args)))]