Write documentation for input
This commit is contained in:
parent
fafad2dfca
commit
a14b8bffc0
7 changed files with 17 additions and 2 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue