mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-10 23:27:46 +02:00
Move BLANK_PRESET_DATA to Table class
This commit is contained in:
25
dist/better-xcloud.lite.user.js
vendored
25
dist/better-xcloud.lite.user.js
vendored
@@ -1246,6 +1246,15 @@ class MkbMappingPresetsTable extends BasePresetsTable {
|
||||
}
|
||||
}
|
||||
};
|
||||
BLANK_PRESET_DATA = {
|
||||
mapping: {},
|
||||
mouse: {
|
||||
mapTo: 2,
|
||||
sensitivityX: 100,
|
||||
sensitivityY: 100,
|
||||
deadzoneCounterweight: 20
|
||||
}
|
||||
};
|
||||
DEFAULT_PRESET_ID = -1;
|
||||
constructor() {
|
||||
super(LocalDb.TABLE_VIRTUAL_CONTROLLERS);
|
||||
@@ -1273,6 +1282,9 @@ class KeyboardShortcutsTable extends BasePresetsTable {
|
||||
}
|
||||
}
|
||||
};
|
||||
BLANK_PRESET_DATA = {
|
||||
mapping: {}
|
||||
};
|
||||
DEFAULT_PRESET_ID = -1;
|
||||
constructor() {
|
||||
super(LocalDb.TABLE_KEYBOARD_SHORTCUTS);
|
||||
@@ -2617,6 +2629,9 @@ class ControllerShortcutsTable extends BasePresetsTable {
|
||||
}
|
||||
}
|
||||
};
|
||||
BLANK_PRESET_DATA = {
|
||||
mapping: {}
|
||||
};
|
||||
DEFAULT_PRESET_ID = -1;
|
||||
constructor() {
|
||||
super(LocalDb.TABLE_CONTROLLER_SHORTCUTS);
|
||||
@@ -2648,6 +2663,16 @@ class ControllerCustomizationsTable extends BasePresetsTable {
|
||||
}
|
||||
}
|
||||
};
|
||||
BLANK_PRESET_DATA = {
|
||||
mapping: {},
|
||||
settings: {
|
||||
leftTriggerRange: [0, 100],
|
||||
rightTriggerRange: [0, 100],
|
||||
leftStickDeadzone: [0, 100],
|
||||
rightStickDeadzone: [0, 100],
|
||||
vibrationIntensity: 100
|
||||
}
|
||||
};
|
||||
DEFAULT_PRESET_ID = 0;
|
||||
}
|
||||
class ControllerSettingsTable extends BaseLocalTable {
|
||||
|
Reference in New Issue
Block a user