Open Karutoh opened 1 year ago
This would be a breaking change. Instead, maybe something like wooting_analog_get_num_connected_devices
so you can do your dynamic allocation.
This would be a breaking change. Instead, maybe something like
wooting_analog_get_num_connected_devices
so you can do your dynamic allocation.
I think that would be a good compromise.
One thing to note is that wooting_analog_initialise
actually already returns the number of devices (at init time), which may be useful for whatever your use-case is/was.
So this is an odd way to enumerate devices at runtime as shown below.
It should be done this way so there's no mistake on how it's done. As this method is typically common.