Skip to content

Instantly share code, notes, and snippets.

@radhikalism
Created August 19, 2009 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radhikalism/170156 to your computer and use it in GitHub Desktop.
Save radhikalism/170156 to your computer and use it in GitHub Desktop.
(defmulti input (fn [event game] (event-key event)))
(defmethod input :default [event game]
(comment not handled)
game)
(defmethod input :key-up [event game]
(comment your implementation here))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment