1st attempt with a fix for black screen

pull/501/head
Greenlamp 2024-05-05 17:40:08 +02:00 committed by Samuel H
parent fa01f32475
commit 408b189966
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ export class InputsController {
getActionGamepadMapping(): ActionGamepadMapping {
const gamepadMapping = {};
if (!this.player?.mapping) return gamepadMapping;
gamepadMapping[this.player.mapping.LC_N] = Button.UP;
gamepadMapping[this.player.mapping.LC_S] = Button.DOWN;
gamepadMapping[this.player.mapping.LC_W] = Button.LEFT;