Add type hints
This commit is contained in:
@@ -25,13 +25,13 @@
|
|||||||
(defn game
|
(defn game
|
||||||
[key]
|
[key]
|
||||||
(case key
|
(case key
|
||||||
:width (.getWidth (Gdx/graphics))
|
:width (.getWidth ^Graphics (Gdx/graphics))
|
||||||
:height (.getHeight (Gdx/graphics))
|
:height (.getHeight ^Graphics (Gdx/graphics))
|
||||||
:fps (.getFramesPerSecond (Gdx/graphics))
|
:fps (.getFramesPerSecond ^Graphics (Gdx/graphics))
|
||||||
:is-fullscreen? (.isFullscreen (Gdx/graphics))
|
:is-fullscreen? (.isFullscreen ^Graphics (Gdx/graphics))
|
||||||
:is-touched? (.isTouched (Gdx/input))
|
:is-touched? (.isTouched ^Input (Gdx/input))
|
||||||
:x (.getX (Gdx/input))
|
:x (.getX ^Input (Gdx/input))
|
||||||
:y (.getY (Gdx/input))
|
:y (.getY ^Input (Gdx/input))
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
(defmacro input-key
|
(defmacro input-key
|
||||||
|
|||||||
Reference in New Issue
Block a user