Write documentation for input

This commit is contained in:
Héctor Ramón Jiménez 2019-08-29 01:35:37 +02:00
parent fafad2dfca
commit a14b8bffc0
7 changed files with 17 additions and 2 deletions

View file

@ -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,
}