mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-17 01:37:36 +00:00
1st attempt with a fix for black screen
This commit is contained in:
parent
fa01f32475
commit
408b189966
@ -110,6 +110,7 @@ export class InputsController {
|
|||||||
|
|
||||||
getActionGamepadMapping(): ActionGamepadMapping {
|
getActionGamepadMapping(): ActionGamepadMapping {
|
||||||
const gamepadMapping = {};
|
const gamepadMapping = {};
|
||||||
|
if (!this.player?.mapping) return gamepadMapping;
|
||||||
gamepadMapping[this.player.mapping.LC_N] = Button.UP;
|
gamepadMapping[this.player.mapping.LC_N] = Button.UP;
|
||||||
gamepadMapping[this.player.mapping.LC_S] = Button.DOWN;
|
gamepadMapping[this.player.mapping.LC_S] = Button.DOWN;
|
||||||
gamepadMapping[this.player.mapping.LC_W] = Button.LEFT;
|
gamepadMapping[this.player.mapping.LC_W] = Button.LEFT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user