mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Fix local co-op not working
This commit is contained in:
2
dist/better-xcloud.user.js
vendored
2
dist/better-xcloud.user.js
vendored
@@ -9258,7 +9258,7 @@ eval(\`this.onGamepadChanged = function \${onGamepadChangedStr}\`);
|
|||||||
|
|
||||||
let onGamepadInputStr = this.onGamepadInput.toString();
|
let onGamepadInputStr = this.onGamepadInput.toString();
|
||||||
|
|
||||||
match = onGamepadInputStr.match(/(w+.GamepadIndex)/);
|
match = onGamepadInputStr.match(/(\\w+\\.GamepadIndex)/);
|
||||||
if (match) {
|
if (match) {
|
||||||
const gamepadIndexVar = match[0];
|
const gamepadIndexVar = match[0];
|
||||||
onGamepadInputStr = onGamepadInputStr.replace('this.gamepadStates.get(', \`this.gamepadStates.get(\${gamepadIndexVar},\`);
|
onGamepadInputStr = onGamepadInputStr.replace('this.gamepadStates.get(', \`this.gamepadStates.get(\${gamepadIndexVar},\`);
|
||||||
|
@@ -288,7 +288,7 @@ eval(\`this.onGamepadChanged = function \${onGamepadChangedStr}\`);
|
|||||||
|
|
||||||
let onGamepadInputStr = this.onGamepadInput.toString();
|
let onGamepadInputStr = this.onGamepadInput.toString();
|
||||||
|
|
||||||
match = onGamepadInputStr.match(/(\w+\.GamepadIndex)/);
|
match = onGamepadInputStr.match(/(\\w+\\.GamepadIndex)/);
|
||||||
if (match) {
|
if (match) {
|
||||||
const gamepadIndexVar = match[0];
|
const gamepadIndexVar = match[0];
|
||||||
onGamepadInputStr = onGamepadInputStr.replace('this.gamepadStates.get(', \`this.gamepadStates.get(\${gamepadIndexVar},\`);
|
onGamepadInputStr = onGamepadInputStr.replace('this.gamepadStates.get(', \`this.gamepadStates.get(\${gamepadIndexVar},\`);
|
||||||
|
Reference in New Issue
Block a user