oakes / play-clj

A Clojure game library
The Unlicense
940 stars 72 forks source link

Check for multiple key presses? #109

Closed enragedginger closed 7 years ago

enragedginger commented 7 years ago

I just ran through the tutorial. What's the appropriate way for checking for multiple key presses simultaneously? It looks like the screen map in :on-key-down has a :key property which only points to a single key (instead of a collection of keys).

oakes commented 7 years ago

You may also use the key-pressed function, which you would normally call inside the :on-render event.

enragedginger commented 7 years ago

Great! Thank you!