robatwilliams / awesome-webhid

Curated list of resources relating to the WebHID (Human Interface Device) API
171 stars 19 forks source link

Simulating an HID device #23

Open SaadBazaz opened 1 year ago

SaadBazaz commented 1 year ago

Weird question, weird place to be.

I want to create a virtual HID device within the Chrome browser, to simulate HID events and receive them in the page.

Use case: I'm building a controller on a browser on a mobile phone which will send gamepad-like inputs to the host browser.

How can I "understand" inputs from my phone controller and "simulate" actual gamepad inputs on the browser?