TurboWarp / extensions

User-contributed unsandboxed extension gallery for TurboWarp
https://extensions.turbowarp.org/
MIT License
113 stars 231 forks source link

Joy-Con motion detection #330

Open everone123 opened 1 year ago

everone123 commented 1 year ago

I haven't done much on GitHub before so I hope I'm not accidentally misusing this feature, but here's my situation: -My knowledge of how JS works is minimal, but I'm interested in adding a way to use controller motion detection in my game -I'm aware that there are already ways to connect a Joy-Con to TurboWarp, but they don't seem to support the accelerometer or gyroscope

Can anyone confirm or deny if making Joy-Con motion detection work in a TurboWarp extension is possible? Ideally allowing multiple controllers, with numerical reporters for the current sensor values

(might also be worth mentioning that there's a Joy-Con driver for the WebHID API, which Chrome supports, though I'm not sure if that's relevant here or not)

IonMakesGarbage commented 1 year ago

sensing + can sense gyroscopes? check if it can detect the joycons one

Flappy25 commented 1 year ago

I haven't done much on GitHub before so I hope I'm not accidentally misusing this feature, but here's my situation: -My knowledge of how JS works is minimal, but I'm interested in adding a way to use controller motion detection in my game -I'm aware that there are already ways to connect a Joy-Con to TurboWarp, but they don't seem to support the accelerometer or gyroscope

Can anyone confirm or deny if making Joy-Con motion detection work in a TurboWarp extension is possible? Ideally allowing multiple controllers, with numerical reporters for the current sensor values

(might also be worth mentioning that there's a Joy-Con driver for the WebHID API, which Chrome supports, though I'm not sure if that's relevant here or not)

I'm on it!