craydate 0.1.7

A safe Rust API for the Playdate hand held gaming system.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Events which describe changes in state for a button.
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ButtonEvent {
  /// The button was pressed.
  ///
  /// It moved from a `Released` to a `Pushed` state.
  Push,
  /// The button stopped being pressed
  ///
  /// It moved from a `Pushed` to a `Released` state.
  Release,
}