summaryrefslogtreecommitdiffstats
path: root/src/input/button_state.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-08-29 01:35:37 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-08-29 01:35:37 +0200
commita14b8bffc0037cc14f55b361b9591cf2657e6348 (patch)
tree765cc8924bc1276df46834db868852788297e112 /src/input/button_state.rs
parentfafad2dfcab3b6bb11a705af61faf54e07e29773 (diff)
downloadiced-a14b8bffc0037cc14f55b361b9591cf2657e6348.tar.gz
iced-a14b8bffc0037cc14f55b361b9591cf2657e6348.tar.bz2
iced-a14b8bffc0037cc14f55b361b9591cf2657e6348.zip
Write documentation for `input`
Diffstat (limited to '')
-rw-r--r--src/input/button_state.rs4
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,
}