craydate 0.1.7

A safe Rust API for the Playdate hand held gaming system.
Documentation
1
2
3
4
5
6
7
8
/// The current state of a button, which indicates if the player is holding the button down or not.
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ButtonState {
  /// The button is being pressed. The active state of a button.
  Pushed,
  /// The button is not being pressed. The neutral state of a button.
  Released,
}