Map the Share button on Xbox Series controller with the capturing screenshot feature

This commit is contained in:
redphx
2024-05-21 16:51:55 +07:00
parent 3bfe11280e
commit a376f443ef
3 changed files with 35 additions and 7 deletions

View File

@@ -192,6 +192,10 @@ window.addEventListener(BxEvent.STREAM_STOPPED, e => {
GameBar.getInstance().disable();
});
window.addEventListener(BxEvent.CAPTURE_SCREENSHOT, e => {
Screenshot.takeScreenshot();
});
function main() {
// Monkey patches