WebUSB / WebHID - Thoughts?

0 favourites
  • 1 posts
  • Ayy,

    I know little about implementing different javascript apis, and it may be something niche that isn't worth anyone's time, but I was curious on people's thoughts on WebUSB / WebHID.

    developer.mozilla.org/en-US/docs/Web/API/WebUSB_API

    I was particularly curious if you could utilise this to detect individual keyboards and mice that are plugged in, to allow multiple players with multiple keyboards to play a local multiplayer game. I think it's incredibly rare to see this type of functionality in games, I can only recall 1 example (I think Serious Sam 3 allowed multiple mice), but I could see myself utilising this if it existed. I couldn't exactly find a clear answer if WebUSB would allow multiple keyboards/mice, but I wonder if anyone else had any info on this?

    Is there other things this could enable us to do? (E.G. Maybe with RGB keyboards, allowing us to alter the colour of keys, which I believe Terraria has support for).

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)