GaryStanton / phaser3-merged-input

A Phaser 3 plugin to map input from keyboard & gamepad to player actions
MIT License
34 stars 5 forks source link

Use Phaser KeyCodes for defineKey #20

Closed bbugh closed 2 years ago

bbugh commented 2 years ago

defineKey's value was loosely typed as a String, but as far as I can tell from the code it's intended to be a value from the Phaser KeyCodes. This types value more strictly to be the specific inputs.

cc @zewa666

example

zewa666 commented 2 years ago

you're absolutely right @bbugh. I was doing just a quick initial type generation and have clearly overlooked this one.

bbugh commented 2 years ago

Much appreciated! Always good to have another set of eyes on things.

GaryStanton commented 2 years ago

Thanks again chaps!