Remove unnecessary duplication

This commit is contained in:
oakes
2013-12-29 23:16:10 -05:00
parent cbf8dfd85a
commit df7ca4f1d4

View File

@@ -15,7 +15,6 @@
:width `(.getWidth (Gdx/graphics))
:height `(.getHeight (Gdx/graphics))
:is-fullscreen? `(.isFullscreen (Gdx/graphics))
:is-touched? `(.isTouched (Gdx/input))
:x `(.getX (Gdx/input))
:y `(.getY (Gdx/input))
nil))
@@ -52,6 +51,6 @@
(defmacro is-touched?
([]
`(game :is-touched?))
`(.isTouched (Gdx/input)))
([key]
`(and (game :is-touched?) ~(resolve-touch key))))
`(and (is-touched?) ~(resolve-touch key))))