ihatecsv / ControlStadia

ControlStadia is a Chrome Extension which allows arbitrary mapping of input devices to a "standard" virtual input controller which works with Stadia!
GNU General Public License v3.0
29 stars 12 forks source link

ControlStadia on any website #20

Open CorreaBCN opened 2 years ago

CorreaBCN commented 2 years ago

Hi,

I use ControlStadia to virtualize controllers in ChromeOS and it is going very well, it would be very nice to be able to use this extension on other platforms (GeforceNow or xCloud for example), allow a whitelist where to activate the extension or something like that?

I don't know if it would be possible, but it would allow to use this extension on multiple platforms.

Greetings and I hope you did not say something impossible or nonsense.

fredm00n commented 2 years ago

Hi,

I would like to request the same enhancement. This extension works really well with Google Stadia, and it's the only way for my controller to be detected within Chrome. I'm super grateful.

Would it be possible to whitelist GeForce Now website as well?

Thank you! fred

pedroferry commented 2 years ago

Hi,

I would like to request the same enhancement. This extension works really well with Google Stadia, and it's the only way for my controller to be detected within Chrome. I'm super grateful.

Would it be possible to whitelist GeForce Now website as well?

Thank you! fred

I am alreay make it work, you just need to tweek a little bit the extension and add to background.js:

 new chrome.declarativeContent.PageStateMatcher({
                    pageUrl: {hostEquals: "www.xbox.com"},
                }),

And update on manifest.json:

"content_scripts": [
        {
            "matches": [
                "https://stadia.google.com/*",
                "https://gamepad-tester.com/*",
                "https://devicetests.com/*",
                "https://www.xbox.com/*"
            ],
            "js": ["controlstadia.js"],
            "run_at": "document_start"
        }
    ],
            It works very well! 
SpartanSpar commented 1 year ago

My experience of using control stadia with Geforce Now has been less than optimal. Analogue sticks only seems to work when I press button and the input will continue until I press a button again. I added some other controller testing sites to double check and they all work fine. I currently can't test other controllers/setups but since it works everywhere else I would have to assume it's a Geforce Now issue.

ls-ramos commented 1 year ago

For it worked really well with Xbox Cloud by doing the changes that @pedroferry suggested! Very nice extension mainly now that, as far I know, Stadia is shutting down we should definitely extend this extension to another websites.

I added a pull request to whitelist xbox cloud: https://github.com/ihatecsv/ControlStadia/pull/22, unfortunately I do not have Geforce Now to test it there at the moment.

But is there a specific reason that we need allow this extension only for some websites? Why don't we let the user decide which websites the extension should be activated on?