You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A polling command that tries to detect which controller is plugged in
A raw polling command that you then unsafely force to be the controller you want
This will be a bit of grunt work, but what we should have are calls for the unguessable controllers like the Guitar Hero guitar, Mad Maestro baton, etc. There should be an interface to ask the controller struct what its identifier is so that some sanity checking can be done. For example, when polling for the baton, return an errored Result<> if there is a DualShock 2 plugged in.
There should also be a custom Error enum for this call.
The text was updated successfully, but these errors were encountered:
Right now, we have two ways to get a controller:
unsafe
ly force to be the controller you wantThis will be a bit of grunt work, but what we should have are calls for the unguessable controllers like the Guitar Hero guitar, Mad Maestro baton, etc. There should be an interface to ask the controller struct what its identifier is so that some sanity checking can be done. For example, when polling for the baton, return an errored
Result<>
if there is a DualShock 2 plugged in.There should also be a custom Error enum for this call.
The text was updated successfully, but these errors were encountered: