mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
Include pause and resume in the example
This commit is contained in:
parent
d8110243f4
commit
fec06e0c69
|
@ -46,6 +46,14 @@ fn main(mut gba: Gba) -> ! {
|
|||
} else {
|
||||
channel.volume(1);
|
||||
}
|
||||
|
||||
if input.is_pressed(Button::A) {
|
||||
channel.resume();
|
||||
}
|
||||
|
||||
if input.is_pressed(Button::B) {
|
||||
channel.pause();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue