I'm working on a portable cross-platform GUI button, and I want to detect if it's being pressed. I know I can use
Is there a function that returns the number of mouse devices?
Barring that, is there a maximum number of mouse devices that I need to support? Will it be sufficient to check 100 mouse devices? 32? 10?
device_mouse_check_button
to check if a certain mouse device is being pressed. But in order to detect if any mouse is currently being pressed in the button, I need to loop through every mouse device. This would be a simple for loop, except for one thing: in the documentation for Device Input, there's little to no information about how I would find how many mouse devices there are. Though it does reference 2-3 mouse devices on "low end Android devices", and up to 10 mouse devices on UWP devices, it does not give me an upper bound on how many mouse devices there may be, nor any programmatic way to find the number of mouse devices.Is there a function that returns the number of mouse devices?
Barring that, is there a maximum number of mouse devices that I need to support? Will it be sufficient to check 100 mouse devices? 32? 10?