Don’t be Marceline’s dad.
Don’t be Marceline’s dad.
That’s their web dev documentation. The official position is no: https://mozilla.github.io/standards-positions/#webusb
The Nancy Drew adventure game series is in the vein of what you are looking for.
The community on the place that shall not be named is(was?) very active and full of people sharing point-and-click game suggestions.
There’s even a spreadsheet!
ID_INPUT_SWITCH (Line 88 here) appears to be an option that is excluded from the list on the libinput page.
I went through some similar issues with PostmarketOS on a Chromebook. The libinput quirks and udev rules are highly undocumented and unstable right now. You have to piece together information from existing configurations and poking around in the libinput repo.
Then you’ll likely have to mess with the udev rules and force the device to recognized as a lid switch.
Per the example under “Querying the hwdb,” you need the ID_INPUT_SWITCH property to be set correctly.
There’s an example of how to group devices in the Arch wiki for graphics tablets that may be of use if libinput will accept two different switches as one.
If you are using Wayland, it might be time to play with libinput quirks.
I’ve found the best way to set them is by first reading ones that may already cover your situation, the finding the right string to match on.
I’ve been using Porkbun. It’s cheap and provides all of the TLDs I need.
You can attempt to opt-out, but this kind of thing should be illegal in the first place.
https://www.spectrum.com/policies/your-privacy-rights-opt-out