Closed lajbel closed 3 weeks ago
2 problems, now you have to hardcode input keys, for example
onKeyPress("space");
And also you have to implement two handlers for controllers and keyboard compatibility
onKeyPress("space", jump); onGamepadButtonPress("dpad-up", jump)
So Write spec
onButtonPress("jump")
getButton("jump")
getButtonByKey("up")
2 problems, now you have to hardcode input keys, for example
And also you have to implement two handlers for controllers and keyboard compatibility
So Write spec
onButtonPress("jump")
getButton("jump")
,getButtonByKey("up")