-
Notifications
You must be signed in to change notification settings - Fork 1
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
【Feature】 Allows creation of events from callback. #5
Comments
PS Controller have been broken, so it may take some time to test . |
I got you, fam. See PR #6. commands.add(ButtonSequence::new(
action::send_event_with_input(|gamepad| MyEvent(gamepad)),
[
GamepadButtonType::North,
GamepadButtonType::East,
GamepadButtonType::South,
GamepadButtonType::West,
]
).time_limit(Duration::from_secs(1))); I thought about switching the arguments to KeySequence::new(keyseq! { ctrl-alt-Delete }, quit_everything) But maybe that's ok. |
I would like to update this library. 0.3.1 is fine? |
I’d suggest 0.4.0 because it’s a breaking change. |
I see, thank you. |
I released version 0.4.0! |
I would like to be able to generate events from callbacks with the proposal mentioned in the PR#4.
This allows gamepad buttons to be passed to events.
The text was updated successfully, but these errors were encountered: