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

Add VirtualAxis::from_keys Helper #397

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

jnhyatt
Copy link
Contributor

@jnhyatt jnhyatt commented Oct 12, 2023

Adds a simple helper for two keys making up an axis beyond the ad, ws etc. provided. Usage is just:

input_map.insert(VirtualAxis::from_keys(KeyCode::F, KeyCode::R), Movement::Vertical);

Also migrated ad, ws etc. to use the new helper.

RELEASES.md Outdated Show resolved Hide resolved
@alice-i-cecile alice-i-cecile enabled auto-merge (squash) October 12, 2023 23:55
@alice-i-cecile alice-i-cecile merged commit fc3e348 into Leafwing-Studios:main Oct 12, 2023
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants