mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-07 13:48:27 +02:00
Fix virtual controller stopped working (#731)
This commit is contained in:
7
dist/better-xcloud.pretty.user.js
vendored
7
dist/better-xcloud.pretty.user.js
vendored
@@ -5473,10 +5473,9 @@ true` + text;
|
||||
return str = str.replace(text, text + "return true;"), str;
|
||||
},
|
||||
exposeInputChannel(str) {
|
||||
let index = str.indexOf("this.flushData=");
|
||||
if (index < 0) return !1;
|
||||
let newCode = "window.BX_EXPOSED.inputChannel = this,";
|
||||
return str = PatcherUtils.insertAt(str, index, newCode), str;
|
||||
let text = '()(this,"flushData",(';
|
||||
if (!str.includes(text)) return !1;
|
||||
return str = str.replace(text, '()(window.BX_EXPOSED.inputChannel = this, "flushData", ('), str;
|
||||
},
|
||||
disableNativeRequestPointerLock(str) {
|
||||
let text = "async requestPointerLock(){";
|
||||
|
Reference in New Issue
Block a user