-
Notifications
You must be signed in to change notification settings - Fork 10
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
Missing EventHandler usage #56
Comments
I have a working "example" in the (unreleased) winrt backend of midir: https://github.com/Boddlnagg/midir/blob/5e90714e5bd5eb9062c19ca1d934dfec767d9711/src/backend/winrt/mod.rs#L107 It looks like you're doing basically the same thing, but your
This is because you're not actually matching on the |
Is that warning showing for you on the nightly version of the compiler or something? I don’t remember seeing it! Thanks for the catch. Might be nice to add an example of how to use this somewhere in the crate docs or the docs around the EventHandler object. :) Would you be up for a PR adding such a thing? |
I think this warning should appear also on stable. I would appreciate a PR for adding documentation around this, but I'm not sure where it's best to put it. On the |
Hi there,
I’m trying to use the
Windows.Gaming.Input
methods to get Gamepad access. I’m having a lot of trouble figuring out how to implement the event handlers! I’ve gotten as far as getting an event handler with a signature that got accepted (kind of complicated, it seems!);Unfortunately, I get “0 gamepads connected” printed, before it panics with not being able to add the event handler.
Is there something I’ve missed in how this is intended to work? I can find references in issues to event handlers, but I can’t see any example code.
Any help would be very appreciated - I’d also be happy to contribute the above in a PR as an example if I can get it working :)
The text was updated successfully, but these errors were encountered: