niklashigi / contro

:video_game: Game controls done right.
https://npm.im/contro
MIT License
53 stars 7 forks source link

add listeners #13

Closed amir-arad closed 5 years ago

amir-arad commented 5 years ago

for using contro without game loops it might come in handy

amir-arad commented 5 years ago

on second thought that's exactly what this lib is not about. sorry :)

niklashigi commented 5 years ago

@amir-arad No worries. I understand that the polling-based API isn't suitable in all cases but offering event listeners as well might over-complicate the API. I might have a go at designing an API that combines both approaches at some point but I can't promise anything.