-
Notifications
You must be signed in to change notification settings - Fork 121
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
Split UserInput into multiple traits #535
Comments
The basic design I'm going to go with is a core Then, three other traits that imply |
I was thinking of having an |
Yeah, I think that we need to restrict chords to only contain buttonlike inputs, and then make sure there's general-purpose ways to turn axislikes into buttonlikes. I'll tackle this and ping you for review :) |
But in some cases, Chord with single-/dual-axis inputs can be really useful. For instance, in my project, I've implemented mouse drag using a Chord. Perhaps we could consider making a Chord consist of either only buttons, only buttons with single-axis inputs, or only buttons with dual-axis inputs? |
Hmm 🤔 Okay, I'll leave it for now and chew on it. |
I had previously considered splitting it into different input kinds: Button, Axis, DualAxis, etc.; and there are corresponding data types for each. Then, modify the ActionState API, something like this:
Originally posted by @Shute052 in #490 (comment)
The text was updated successfully, but these errors were encountered: