You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm a webdev, and would love to make use of the excellent & interesting keyboards Wooting has. Currently, to my knowledge, there's no way to make use of the truly excellent analog keyboards Wooting makes on the world wide web. I see that as a problem for the web, that should be addressed.
Describe the solution you'd like
I'd love a Web standard to recognize & support analog keyboard key presses. This would make the whole wide world better.
Describe alternatives or workarounds you've considered
Giving up? Doing nothing?
Additional context
I've tried to start some dialog by opening an issue for a web specification. I picked the w3c/gamepad specification as a starting point because they are so intimate with how to represent continuous time analog signals. That issue is w3c/gamepad#187.
I maintain the Gamepad API specification and the Chromium implementation. I don't see a way we can support pressure-sensitive keyboards in Gamepad API due to the potential for keystroke logging.
I also maintain WebHID API which may be relevant. Pressure-sensitive keyboards might work with WebHID or might not, depending on how the HID report descriptor is structured. WebHID blocks access to top-level collections with the "Generic Desktop Keyboard" usage, so standard keyboard functionality is not accessible but vendor-defined functionality may be accessible if it's defined in a separate top-level collection with a different usage ID. That said, if the vendor-defined functionality contains keystroke data then we would probably want to add the device to the HID blocklist. If you can provide HID report descriptors for a pressure-sensitive keyboard I'm happy to take a look.
There is no universal analogue keyboard interface, but in regards to Wooting it is possible to read the analogue input reports via WebHID:
<button>Press me for the mandatory user gesture</button><script>document.querySelector("button").onclick=function(){navigator.hid.requestDevice({filters: [{usagePage: 0xff54}]}).then(device=>{console.log(device[0].productName+" selected");device[0].open().then(()=>{console.log(device[0].productName+" connected");device[0].addEventListener("inputreport",event=>{letscancode=event.data.getUint16(0);letvalue=event.data.getUint8(2);console.log("Pressure on "+scancode+": "+(value/255));});})});};</script>
Mind that this is a very shitty way of doing it because the input reports allow for anywhere from 0 to 16 keys to be reported.
There are also Razer analogue keyboards which simply use report id 7 — you might not be able to get those via WebHID, tho.
Is your feature request related to a problem? Please describe.
I'm a webdev, and would love to make use of the excellent & interesting keyboards Wooting has. Currently, to my knowledge, there's no way to make use of the truly excellent analog keyboards Wooting makes on the world wide web. I see that as a problem for the web, that should be addressed.
Describe the solution you'd like
I'd love a Web standard to recognize & support analog keyboard key presses. This would make the whole wide world better.
Describe alternatives or workarounds you've considered
Giving up? Doing nothing?
Additional context
I've tried to start some dialog by opening an issue for a web specification. I picked the w3c/gamepad specification as a starting point because they are so intimate with how to represent continuous time analog signals. That issue is w3c/gamepad#187.
Input Events specification is another obvious place to start dialog, see what might be possible.
Additional information
Platform information
The web. Chrome, Firefox, whatever.
The text was updated successfully, but these errors were encountered: