You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
Hi,
i am asking myself, why is 'key-pressed?' a macro? I'm not very familiar with clojure macro's and therefore i wasn't able to get code like this to run.
(key-pressed? (:my-key {:my-key:a} ) )
Is there a workaround?
The text was updated successfully, but these errors were encountered:
I made it a macro so it would create the appropriate static field at compile time instead of constantly at runtime. Here are function versions of key-code and key-pressed? you can use instead (you'll need to bring in the play-clj.utils namespace):
Hi,
i am asking myself, why is 'key-pressed?' a macro? I'm not very familiar with clojure macro's and therefore i wasn't able to get code like this to run.
Is there a workaround?
The text was updated successfully, but these errors were encountered: