I am starting to remap mouse buttons for the different functionality of my project. I want to use the middle mouse button for zoom and rotate (arcRotate Camera). But, not every mouse has a middle mouse button.
Is there a way to detect if a physical hardware mouse has a middle button in JS or even higher level in the engine?
Every time I search for this, the results that return are for detecting a mouse button (press) which is not what I want. I want to know how many buttons are on a user’s mouse, so I can map them appropriately.
Also, if the middle mouse wheel / button do not exist (trackpads and some MAC mice, I am looking at you), what would graceful fallback input mapping code look like to remap mouse inputs to some other button or key look like?