generated from Leafwing-Studios/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Single Axis Inputs in Virtual DPads (#180)
* Temporarily Comment Out Bevy Egui * Make Axis Input Example Slightly More Readable * Fix Bug in Symmetric Axis Constructor Axis would always trigger because negative_low was positive. * Return Axis Pair Results When Action Isn't Pressed This makes sure that axis_pair() returns `Some` even if the value is zero because the axis isn't moved. * Set Dual Axis Value Zero if Not in Trigger Range * Make Single-Axis Inputs Work in Virtual DPad This makes sure that SingleAxis inputs will report a value of 0.0 if the axis value is not withing the triggering zone. This makes it possible to create a virtual gamepad made up of multiple single-axis inputs on the same stick. * Cargo Format
- Loading branch information
Showing
7 changed files
with
331 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.