diff --git a/examples/panic.rs b/examples/panic.rs index 180c5973..4d21b5c8 100644 --- a/examples/panic.rs +++ b/examples/panic.rs @@ -14,8 +14,13 @@ fn main(_argc: isize, _argv: *const *const u8) -> isize { loop { input.update(); + // if A is pressed, draw out of range if input.is_just_pressed(gba::input::Button::A) { bitmap.draw_point(display::WIDTH, 0, 0x05); } + // if B is pressed, try take another bitmap + if input.is_just_pressed(gba::input::Button::B) { + gba.display.bitmap4(); + } } }