generated from Leafwing-Studios/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
value
for button-like inputs (#649)
* Bump macro crate version * Add Triggerlike trait * Add Triggerlike variants everywhere * Implement Triggerlike for GamepadButtonType and GamepadButton * Implement Triggerlike for MouseButton and KeyCode * Update changelog * Fix broken doc links * Add ActionState::clamped_trigger_value * Use the right type name in RELEASES Co-authored-by: Shute <nagame2036@163.com> * Fix warning in RELEASES.md * Add inputmap insertion methods * Write basic integration tests * More integration testing * Fix CI * Change `ActionDiff::Pressed` * Fix example * Reuse `set_value_as_gamepad` of `GamepadButtonType` and `GamepadButton` --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
- Loading branch information
1 parent
5bb37ff
commit 54a361b
Showing
16 changed files
with
652 additions
and
120 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
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
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
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.