Rename function again

This commit is contained in:
oakes
2014-01-10 19:35:52 -05:00
parent 2f20efa27e
commit c11b5159fe

View File

@@ -34,14 +34,14 @@
:y (.getY ^Input (Gdx/input)) :y (.getY ^Input (Gdx/input))
nil)) nil))
(defmacro keycode (defmacro key-code
[key] [key]
`~(symbol `~(symbol
(str utils/gdx-package ".Input$Keys/" (utils/key->static-field key)))) (str utils/gdx-package ".Input$Keys/" (utils/key->static-field key))))
(defmacro is-pressed? (defmacro is-pressed?
[key] [key]
`(.isKeyPressed ^Input (Gdx/input) (keycode ~key))) `(.isKeyPressed ^Input (Gdx/input) (key-code ~key)))
(defn- input-processor (defn- input-processor
[{:keys [on-key-down on-key-typed on-key-up on-mouse-moved [{:keys [on-key-down on-key-typed on-key-up on-mouse-moved