Browse Source

Revert bitmask to .contains for KEY_R

pull/65/head
Steve Cook 2 years ago
parent
commit
1efb2e6ea3
  1. 2
      ctru-rs/examples/camera-image.rs

2
ctru-rs/examples/camera-image.rs

@ -74,7 +74,7 @@ fn main() {
break; break;
} }
if keys_down.bits() & KeyPad::KEY_R.bits() != 0 { if keys_down.contains(KeyPad::KEY_R) {
println!("Capturing new image"); println!("Capturing new image");
take_picture(&mut cam, &mut buf); take_picture(&mut cam, &mut buf);
} }

Loading…
Cancel
Save