mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
implement more ways of panicking
This commit is contained in:
parent
0613849da9
commit
9b0bdb17e5
|
@ -14,8 +14,13 @@ fn main(_argc: isize, _argv: *const *const u8) -> isize {
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
input.update();
|
input.update();
|
||||||
|
// if A is pressed, draw out of range
|
||||||
if input.is_just_pressed(gba::input::Button::A) {
|
if input.is_just_pressed(gba::input::Button::A) {
|
||||||
bitmap.draw_point(display::WIDTH, 0, 0x05);
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue