Skip to content

Commit

Permalink
Derive Debug and PartialEq for amethyst_input::Axis.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Aug 24, 2018
1 parent e8fc8f6 commit 315f80d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion amethyst_input/src/axis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::{Button, ControllerAxis};

/// Represents any input represented by a float value from -1 to 1.
/// Retrieve the value of this with [axis_value](struct.InputHandler.html#method.axis_value).
#[derive(Serialize, Deserialize, Clone)]
#[derive(Debug, PartialEq, Serialize, Deserialize, Clone)]
pub enum Axis {
/// Represents an emulated analogue axis made up of pair of digital inputs,
/// like W and S keyboard buttons or `DPadUp` and `DPadDown` controller buttons.
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ The format is based on [Keep a Changelog][kc], and this project adheres to
* Simplified creating states with SimpleState and EmptyState. ([#887])
* Updated ProgressCounter to show loading errors. ([#892])
* Replaced the `imagefmt` crate with `image`. ([#877])
* Derive `Debug` and `PartialEq` for `amethyst_input::Axis`. ([#903], [#904])

### Removed

### Fixed
Expand All @@ -34,6 +36,8 @@ The format is based on [Keep a Changelog][kc], and this project adheres to
[#892]: https://github.com/amethyst/amethyst/pull/892
[#877]: https://github.com/amethyst/amethyst/pull/877
[#896]: https://github.com/amethyst/amethyst/pull/896
[#903]: https://github.com/amethyst/amethyst/issues/903
[#904]: https://github.com/amethyst/amethyst/pull/904

## [0.8.0] - 2018-08
### Added
Expand Down

0 comments on commit 315f80d

Please sign in to comment.