fenomas / game-inputs

A simple module for abstracting key/mouse input for games. Demo:
http://fenomas.github.io/game-inputs/
20 stars 6 forks source link

State object for cumulative presses per frame #1

Closed fenomas closed 2 years ago

fenomas commented 9 years ago

Separate to the state object, there should be an object that counts press events and is cleared each frame by tick. This will let games process all inputs discretely in their tick function if they want to.

fenomas commented 2 years ago

This is added in 0.6.0 (currently in #develop)