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 gamepad rumble support to bevy_input #8398

Merged
merged 57 commits into from
Apr 24, 2023

Commits on Feb 5, 2022

  1. Add rumble support to bevy_gilrs

    This adds the `RumbleRequest` event and a system to read them and rumble
    controllers accordingly.
    
    It gives users two ways of controlling controller rumble:
    1. A very primitive API with `RumbleIntensity` that is easy to
       understand and use.
    2. A direct access to the girls `ff::Effect` system for complete
       fine-grained control over how the gamepad rumbles.
    nicopap committed Feb 5, 2022
    Configuration menu
    Copy the full SHA
    0707bdc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8bfbfda View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2023

  1. Merge remote-tracking branch 'origin/main' into rumble

    Conflicts:
    	crates/bevy_gilrs/Cargo.toml
    	crates/bevy_gilrs/src/lib.rs
    	crates/bevy_gilrs/src/rumble.rs
    	examples/README.md
    	examples/input/gamepad_rumble.rs
    johanhelsing committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    1628d42 View commit details
    Browse the repository at this point in the history
  2. Suggestions from code-review

    Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
    johanhelsing and alice-i-cecile committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    a2f5fd9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ca8654 View commit details
    Browse the repository at this point in the history
  4. Fix typo

    johanhelsing committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    34e6420 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    08e5690 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7787e6a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    55985d7 View commit details
    Browse the repository at this point in the history
  8. Move rumble above tests

    johanhelsing committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    0b5615f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    47dd5b3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    dc75f63 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d16c375 View commit details
    Browse the repository at this point in the history
  12. Add gamepad rumble example to Cargo.toml

    non-wasm, for now
    johanhelsing committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    bac6ddd View commit details
    Browse the repository at this point in the history
  13. Add missing semis

    johanhelsing committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    c36af78 View commit details
    Browse the repository at this point in the history
  14. docs: Finish renaming

    johanhelsing committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    254be0f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    7fed666 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e54e6ef View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    d092d2a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    90079b9 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    1f4e744 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    23668eb View commit details
    Browse the repository at this point in the history
  21. Add docs

    johanhelsing committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    fbc5283 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    e26fd82 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    ef0e248 View commit details
    Browse the repository at this point in the history
  24. Fix docs example

    johanhelsing committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    fc92a5b View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. Configuration menu
    Copy the full SHA
    d455a2b View commit details
    Browse the repository at this point in the history
  2. Interrupt rumble with east button

    This is more commonly used for "cancel" type actions.
    johanhelsing committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    307eadc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    380764a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    71a09b6 View commit details
    Browse the repository at this point in the history
  5. Fix clippy lints

    johanhelsing committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    9a0a616 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    714f2af View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    643b9a4 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. Apply suggestions from code review

    Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
    johanhelsing and alice-i-cecile committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    8d0ab03 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2023

  1. Configuration menu
    Copy the full SHA
    52c7f4f View commit details
    Browse the repository at this point in the history
  2. Fix issues with rumble durations

    Rumbling was closely coupled with frame rate, meaning if you dropped
    frames, you would get longer or shorter rumbles. Also, using an f32
    would probably cause issues after an hour or two of gameplay.
    johanhelsing committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    fc21d2f View commit details
    Browse the repository at this point in the history
  3. Use raw_elapsed

    johanhelsing committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    677fd91 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dcf8e2e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    58825df View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f9748db View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ecd61ca View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e07a55c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d83959a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    388ef33 View commit details
    Browse the repository at this point in the history
  11. Change example button mapping

    Not everybody has the same expectations about what button on a gamepad
    should cancel.
    johanhelsing committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    836218a View commit details
    Browse the repository at this point in the history
  12. Update crates/bevy_input/src/gamepad.rs

    Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
    johanhelsing and alice-i-cecile committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    fa5ceb0 View commit details
    Browse the repository at this point in the history
  13. refactor: Use values_mut

    johanhelsing committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    f5ed292 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7978fae View commit details
    Browse the repository at this point in the history
  15. fix docs issue

    johanhelsing committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    438051f View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    f250fb8 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    4261821 View commit details
    Browse the repository at this point in the history
  18. Update crates/bevy_gilrs/src/lib.rs

    Co-authored-by: Nicola Papale <nicopap@users.noreply.github.com>
    johanhelsing and nicopap committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    103fceb View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    1829fc7 View commit details
    Browse the repository at this point in the history
  20. Make constructors const

    johanhelsing committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    a87e486 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    673facd View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2023

  1. Add doc alias

    Co-authored-by: Bruce Reif (Buswolley) <bruce.reif@dynata.com>
    alice-i-cecile and B-Reif committed Apr 23, 2023
    Configuration menu
    Copy the full SHA
    990a262 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2023

  1. Configuration menu
    Copy the full SHA
    98b26f0 View commit details
    Browse the repository at this point in the history