This commit is contained in:
2026-02-09 12:13:19 +01:00
parent 93fbc8fc12
commit a122fde6da
4 changed files with 136 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
use std::slice;
#[derive(Debug)]
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Button {
Back,
Screen1,
@@ -88,7 +88,7 @@ impl Button {
}
}
pub(super) fn all_buttons() -> slice::Iter<'static, Self> {
pub fn all_buttons() -> slice::Iter<'static, Self> {
use Button::*;
[
Back, Screen1, Screen2, Screen3, Screen4, Light, M1, M2, M3, MR, G1, G2, G3, G4, G5, G6, G7, G8, G9, G10,