diff options
author | 2019-08-29 01:35:37 +0200 | |
---|---|---|
committer | 2019-08-29 01:35:37 +0200 | |
commit | a14b8bffc0037cc14f55b361b9591cf2657e6348 (patch) | |
tree | 765cc8924bc1276df46834db868852788297e112 /src/input/button_state.rs | |
parent | fafad2dfcab3b6bb11a705af61faf54e07e29773 (diff) | |
download | iced-a14b8bffc0037cc14f55b361b9591cf2657e6348.tar.gz iced-a14b8bffc0037cc14f55b361b9591cf2657e6348.tar.bz2 iced-a14b8bffc0037cc14f55b361b9591cf2657e6348.zip |
Write documentation for `input`
Diffstat (limited to '')
-rw-r--r-- | src/input/button_state.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/button_state.rs b/src/input/button_state.rs index e8845cc7..988043ba 100644 --- a/src/input/button_state.rs +++ b/src/input/button_state.rs @@ -1,5 +1,9 @@ +/// The state of a button. #[derive(Debug, Hash, Ord, PartialOrd, PartialEq, Eq, Clone, Copy)] pub enum ButtonState { + /// The button is pressed. Pressed, + + /// The button is __not__ pressed. Released, } |