mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-06-20 21:12:38 +02:00
audio/playtone: KEY -> HidNpadButton, which were missed previously.
This commit is contained in:
parent
78b1ed515e
commit
e423a0ab0e
@ -145,13 +145,13 @@ int main(int argc, char **argv)
|
|||||||
play_tone = true;
|
play_tone = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kDown & KEY_L)
|
if (kDown & HidNpadButton_L)
|
||||||
{
|
{
|
||||||
fill_audio_buffer(out_buf_data, 0, data_size, notefreq[8]);
|
fill_audio_buffer(out_buf_data, 0, data_size, notefreq[8]);
|
||||||
play_tone = true;
|
play_tone = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kDown & KEY_R)
|
if (kDown & HidNpadButton_R)
|
||||||
{
|
{
|
||||||
fill_audio_buffer(out_buf_data, 0, data_size, notefreq[9]);
|
fill_audio_buffer(out_buf_data, 0, data_size, notefreq[9]);
|
||||||
play_tone = true;
|
play_tone = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user