Remix.run Logo
tvb12 3 days ago

On the subject of adding more buttons, I think there needs to be a rethinking of mouse button events at the OS level. Gaming mice with 12-20+ buttons have to resort to creating keyboard events with weird key combinations because there aren't actually that many mouse events, which is insane. There are currently only 12 valid integers (12 types of "click") sent from the raw mouse events. Those need special handling because the numbers are chosen very strangely, but why can't we agree that for any number within some range, the odd number is a key-press and the even number is the key-release, or something like that? You don't have to create named events for all of them, but the raw integers should be valid even if you have to use the lower level events.

If I want to build a mouse with 32,000 buttons, the limit should not be the operating system's mouse event.