Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement forced polling #13

Open
RandomInsano opened this issue Aug 19, 2018 · 0 comments
Open

Implement forced polling #13

RandomInsano opened this issue Aug 19, 2018 · 0 comments

Comments

@RandomInsano
Copy link
Owner

Right now, we have two ways to get a controller:

  1. A polling command that tries to detect which controller is plugged in
  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant