From f5c502cf861cc0156fb03633801203f3e261270e Mon Sep 17 00:00:00 2001 From: oakes Date: Fri, 10 Jan 2014 02:42:23 -0500 Subject: [PATCH] Add type hints --- src/play_clj/core_global.clj | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/play_clj/core_global.clj b/src/play_clj/core_global.clj index a0ae3fa..635efc0 100644 --- a/src/play_clj/core_global.clj +++ b/src/play_clj/core_global.clj @@ -25,13 +25,13 @@ (defn game [key] (case key - :width (.getWidth (Gdx/graphics)) - :height (.getHeight (Gdx/graphics)) - :fps (.getFramesPerSecond (Gdx/graphics)) - :is-fullscreen? (.isFullscreen (Gdx/graphics)) - :is-touched? (.isTouched (Gdx/input)) - :x (.getX (Gdx/input)) - :y (.getY (Gdx/input)) + :width (.getWidth ^Graphics (Gdx/graphics)) + :height (.getHeight ^Graphics (Gdx/graphics)) + :fps (.getFramesPerSecond ^Graphics (Gdx/graphics)) + :is-fullscreen? (.isFullscreen ^Graphics (Gdx/graphics)) + :is-touched? (.isTouched ^Input (Gdx/input)) + :x (.getX ^Input (Gdx/input)) + :y (.getY ^Input (Gdx/input)) nil)) (defmacro input-key