bsergent / overmorrow

Typescript canvas game engine
http://challengercity.com/v4/projects/overmorrow/
0 stars 1 forks source link

Add held duration to KEYUP controller event #48

Open bsergent opened 5 years ago

bsergent commented 5 years ago

Track the number of milliseconds the key was held for. Likely useful for differentiating normal and charge attacks. Animation will still need to be handled by the keydown and keyup events separately.