feat(core/rust): make ButtonPos hit function public to enable reuse

pull/2448/head
tychovrahe 2 years ago committed by TychoVrahe
parent f538547d5b
commit ce142ffe08

@ -18,7 +18,7 @@ pub enum ButtonPos {
}
impl ButtonPos {
fn hit(&self, b: &PhysicalButton) -> bool {
pub fn hit(&self, b: &PhysicalButton) -> bool {
matches!(
(self, b),
(Self::Left, PhysicalButton::Left) | (Self::Right, PhysicalButton::Right)

Loading…
Cancel
Save