mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
continuing input framework integration
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@631 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
54563d7189
commit
fce20e73e7
13 changed files with 252 additions and 457 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "readpng.h"
|
||||
#include "lprintf.h"
|
||||
#include "common.h"
|
||||
#include "input.h"
|
||||
#include "emu.h"
|
||||
|
||||
|
||||
|
@ -350,7 +351,7 @@ static void mplayer_loop(void)
|
|||
while (1)
|
||||
{
|
||||
PDebugZ80Frame();
|
||||
if (read_buttons_async(PBTN_NORTH)) break;
|
||||
if (in_menu_wait_any(0) & PBTN_NORTH) break;
|
||||
emu_waitSound();
|
||||
}
|
||||
|
||||
|
@ -429,8 +430,8 @@ void debug_menu_loop(void)
|
|||
}
|
||||
menu_draw_end();
|
||||
|
||||
inp = read_buttons(PBTN_EAST|PBTN_SOUTH|PBTN_WEST|PBTN_NORTH|PBTN_L|PBTN_R|PBTN_UP|PBTN_DOWN|PBTN_LEFT|PBTN_RIGHT);
|
||||
if (inp & PBTN_SOUTH) return;
|
||||
inp = in_menu_wait(PBTN_EAST|PBTN_MBACK|PBTN_WEST|PBTN_NORTH|PBTN_L|PBTN_R|PBTN_UP|PBTN_DOWN|PBTN_LEFT|PBTN_RIGHT);
|
||||
if (inp & PBTN_MBACK) return;
|
||||
if (inp & PBTN_L) { mode--; if (mode < 0) mode = 3; }
|
||||
if (inp & PBTN_R) { mode++; if (mode > 3) mode = 0; }
|
||||
switch (mode)
|
||||
|
@ -438,13 +439,13 @@ void debug_menu_loop(void)
|
|||
case 0:
|
||||
if (inp & PBTN_EAST) SekStepM68k();
|
||||
if (inp & PBTN_NORTH) {
|
||||
while (inp & PBTN_NORTH) inp = read_buttons_async(PBTN_NORTH);
|
||||
while (inp & PBTN_NORTH) inp = in_menu_wait_any(-1);
|
||||
mplayer_loop();
|
||||
}
|
||||
if ((inp & (PBTN_WEST|PBTN_LEFT)) == (PBTN_WEST|PBTN_LEFT)) {
|
||||
mkdir("dumps", 0777);
|
||||
PDebugDumpMem();
|
||||
while (inp & PBTN_WEST) inp = read_buttons_async(PBTN_WEST);
|
||||
while (inp & PBTN_WEST) inp = in_menu_wait_any(-1);
|
||||
dumped = 1;
|
||||
}
|
||||
break;
|
||||
|
@ -458,7 +459,7 @@ void debug_menu_loop(void)
|
|||
PicoSkipFrame = 1;
|
||||
PicoFrame();
|
||||
PicoSkipFrame = 0;
|
||||
while (inp & PBTN_EAST) inp = read_buttons_async(PBTN_EAST);
|
||||
while (inp & PBTN_EAST) inp = in_menu_wait_any(-1);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue