15 static void press(input in
){
16 if(in
.button
== ESCAPE_KEY
){
20 if(in
.button
== FIRE_BUTTON
){
21 console_printf("peak %d dB, rms %d dB", audio_peak_level(), audio_rms_level());
24 if(in
.button
== UP_BUTTON
){
28 if(in
.button
== DOWN_BUTTON
){
34 console_printf("pausing music");
39 console_printf("playing music");
40 music_play(MUS_TEST1);
46 static void release(input in
){
58 set_handler(update
, draw
, press
, release
);
61 if(music_load("last_battle.mid", MUS_TEST1
) < 0){
62 error_msg("open music failed\n");
65 music_play(MUS_TEST1
);