Improve key transform functions and add scaling macro

This commit is contained in:
oakes
2014-01-12 00:32:33 -05:00
parent 1509726492
commit 489ffe0c0f
4 changed files with 31 additions and 21 deletions

View File

@@ -62,7 +62,7 @@
(defmacro key-code
[key]
`~(symbol (str u/main-package ".Input$Keys/" (u/key->static-field key true))))
`~(symbol (str u/main-package ".Input$Keys/" (u/key->upper key))))
(defmacro is-pressed?
[key]