mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 07:38:05 -04:00
extracted OSS code to sndout_oss_*, BTN->PBTN, refactoring
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@599 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
7b3f44c6b6
commit
e5ab6fafac
25 changed files with 497 additions and 589 deletions
|
@ -390,10 +390,10 @@ static void RunEvents(unsigned int which)
|
|||
{
|
||||
int keys;
|
||||
blit("", (which & 0x1000) ? "LOAD STATE? (PLAY=yes, STOP=no)" : "OVERWRITE SAVE? (PLAY=yes, STOP=no)");
|
||||
while( !((keys = Framework_PollGetButtons()) & (BTN_PLAY|BTN_STOP)) )
|
||||
while( !((keys = Framework_PollGetButtons()) & (PBTN_PLAY|PBTN_STOP)) )
|
||||
Sleep(50);
|
||||
if (keys & BTN_STOP) do_it = 0;
|
||||
while( ((keys = Framework_PollGetButtons()) & (BTN_PLAY|BTN_STOP)) ) // wait for release
|
||||
if (keys & PBTN_STOP) do_it = 0;
|
||||
while( ((keys = Framework_PollGetButtons()) & (PBTN_PLAY|PBTN_STOP)) ) // wait for release
|
||||
Sleep(50);
|
||||
clearArea(0);
|
||||
}
|
||||
|
@ -449,7 +449,7 @@ static void updateKeys(void)
|
|||
int i;
|
||||
|
||||
keys = Framework_PollGetButtons();
|
||||
if (keys & BTN_HOME)
|
||||
if (keys & PBTN_HOME)
|
||||
engineState = PGS_Menu;
|
||||
|
||||
keys &= CONFIGURABLE_KEYS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue