So I can't reproduce the problem,
here are 2 solutions. Let me know if it works (I might be able to figure out what's causing the problem)
Solution 1 (client.ts)
In main/client.ts:
import { RpgClientEngine } from "@rpgjs/client"
export default {
onStart(client: RpgClientEngine) {
client.globalConfig.inputs = {}
client.globalConfig.inputs.up = {
name: "up",
repeat: true,
bind: ["up", "w"]
}
}
}
Solution 2 (scene-map.ts)
In main/scene-map.ts:
import { RpgSceneMapHooks, RpgSceneMap, Control, Input } from '@rpgjs/client'
const sceneMap: RpgSceneMapHooks = {
onAfterLoading(scene: RpgSceneMap) {
scene.game.clientEngine.controls.setInputs({
[Control.Up]: {
repeat: true,
bind: [Input.Up, Input.W]
},
// you must implement the other inputs
})
}
}
export default sceneMap;