From df7ca4f1d4f60f75306e4e81cf7cf8e1b1c382de Mon Sep 17 00:00:00 2001 From: oakes Date: Sun, 29 Dec 2013 23:16:10 -0500 Subject: [PATCH] Remove unnecessary duplication --- common/src/play_clj/global.clj | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/src/play_clj/global.clj b/common/src/play_clj/global.clj index 723c932..c1751e9 100644 --- a/common/src/play_clj/global.clj +++ b/common/src/play_clj/global.clj @@ -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))))