mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Nano2G - implement "Pause on headphone unplug" feature
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23072 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
205231caf7
commit
3c362fa8c6
2 changed files with 8 additions and 0 deletions
|
|
@ -352,6 +352,11 @@ bool button_hold(void)
|
|||
{
|
||||
return ((PDAT14 & (1 << 6)) == 0);
|
||||
}
|
||||
|
||||
bool headphones_inserted(void)
|
||||
{
|
||||
return ((PDAT14 & (1 << 5)) != 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue