From c6a2d98e4a950620c78a83c74b6aefd232972f18 Mon Sep 17 00:00:00 2001 From: Greenlamp Date: Sat, 4 May 2024 19:08:42 +0200 Subject: [PATCH] fix repeating stats button + change message in event when the key is repeating --- src/inputs-controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/inputs-controller.ts b/src/inputs-controller.ts index feb58df689e..59a906b8d21 100644 --- a/src/inputs-controller.ts +++ b/src/inputs-controller.ts @@ -34,6 +34,7 @@ export class InputsController { } // We don't want the menu key to be repeated delete this.interactions[Button.MENU]; + delete this.interactions[Button.STATS]; this.init(); } @@ -68,7 +69,7 @@ export class InputsController { if (!this.interactions.hasOwnProperty(b)) continue; if (this.repeatInputDurationJustPassed(b)) { this.events.emit('input_down', { - controller_type: 'keyboard', + controller_type: 'repeated', button: b, }); this.setLastProcessedMovementTime(b);