Use PartialRecord type

This commit is contained in:
redphx
2024-12-23 05:38:01 +07:00
parent 7b60ba3a3e
commit 560a4c309c
5 changed files with 10 additions and 10 deletions

View File

@@ -16,8 +16,8 @@ if (currentGamepad.id in window.BX_STREAM_SETTINGS.controllers) {
const MIN_RANGE = 0.1;
const { mapping, ranges } = controller.customization;
const pressedButtons: Partial<Record<keyof XcloudGamepad, number>> = {};
const releasedButtons: Partial<Record<keyof XcloudGamepad, number>> = {};
const pressedButtons: PartialRecord<keyof XcloudGamepad, number> = {};
const releasedButtons: PartialRecord<keyof XcloudGamepad, number> = {};
let isModified = false;
// Limit left trigger range