Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Simplify mouse axis, only one radius value would ever be used for a given config #2099

Merged
merged 3 commits into from
Jan 20, 2020
Merged

Simplify mouse axis, only one radius value would ever be used for a given config #2099

merged 3 commits into from
Jan 20, 2020

Conversation

Xaeroxe
Copy link
Member

@Xaeroxe Xaeroxe commented Jan 19, 2020

Description

For a mouse input axis one of the two radial values is guaranteed to go unused, so this simplifies the structure.

Additions

  • amethyst_input::Axis::Mouse::radius

Removals

  • amethyst_input::Axis::Mouse::radius_x
  • amethyst_input::Axis::Mouse::radius_y

Modifications

  • N/A

PR Checklist

By placing an x in the boxes I certify that I have:

  • N/A Updated the content of the book if this PR would make the book outdated.
  • Added a changelog entry if this will impact users, or modified more than 5 lines of Rust that wasn't a doc comment.
  • N/A Added unit tests for new code added in this PR.
  • Acknowledged that by making this pull request I release this code under an MIT/Apache 2.0 dual licensing scheme.

If this modified or created any rs files:

  • Ran cargo +stable fmt --all
  • Ran cargo clippy --all --features "empty"
  • Ran cargo test --all --features "empty"

@codecov
Copy link

codecov bot commented Jan 19, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@693dd0a). Click here to learn what that means.
The diff coverage is 25%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2099   +/-   ##
=========================================
  Coverage          ?   83.57%           
=========================================
  Files             ?       80           
  Lines             ?     5942           
  Branches          ?        0           
=========================================
  Hits              ?     4966           
  Misses            ?      976           
  Partials          ?        0
Impacted Files Coverage Δ
amethyst_input/src/axis.rs 72.72% <0%> (ø)
amethyst_input/src/input_handler.rs 82.27% <33.33%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 693dd0a...09c64e5. Read the comment docs.

@Xaeroxe
Copy link
Member Author

Xaeroxe commented Jan 20, 2020

bors r=@Jojolepro

bors bot added a commit that referenced this pull request Jan 20, 2020
2099: Simplify mouse axis, only one radius value would ever be used for a given config r=jojolepro a=Xaeroxe

## Description

For a mouse input axis one of the two radial values is guaranteed to go unused, so this simplifies the structure.

## Additions

- amethyst_input::Axis::Mouse::radius

## Removals

- amethyst_input::Axis::Mouse::radius_x
- amethyst_input::Axis::Mouse::radius_y

## Modifications

- N/A

## PR Checklist

By placing an x in the boxes I certify that I have:

- N/A Updated the content of the book if this PR would make the book outdated.
- [x] Added a changelog entry if this will impact users, or modified more than 5 lines of Rust that wasn't a doc comment.
- N/A Added unit tests for new code added in this PR.
- [x] Acknowledged that by making this pull request I release this code under an MIT/Apache 2.0 dual licensing scheme.

If this modified or created any rs files:

- [x] Ran `cargo +stable fmt --all`
- [x] Ran `cargo clippy --all --features "empty"`
- [x] Ran `cargo test --all --features "empty"`


Co-authored-by: Jacob Kiesel <kieseljake@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jan 20, 2020

Build succeeded

@bors bors bot merged commit 09c64e5 into amethyst:master Jan 20, 2020
@Xaeroxe Xaeroxe deleted the simplify-mouse-axis branch January 20, 2020 17:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants