win32: cleanup and fix bug where input is ignored during frameadvance

This commit is contained in:
zeromus 2009-02-11 05:21:40 +00:00
parent b3d0485587
commit ce7cb192ed
3 changed files with 6 additions and 5 deletions

View File

@ -2176,7 +2176,8 @@ void input_process()
{
S9xWinScanJoypads();
if (paused) return;
//not appropriate right now in desmume
//if (paused) return;
bool R = joypads[0] & RIGHT_MASK;
bool L = joypads[0] & LEFT_MASK;

View File

@ -110,6 +110,7 @@ extern SJoypad TurboToggleJoypadStorage[8];
void RunInputConfig();
void RunHotkeyConfig();
void input_process();
#endif

View File

@ -802,6 +802,8 @@ DWORD WINAPI run()
{
while(execute)
{
input_process();
{
Lock lock;
cycles = NDS_exec((560190<<1)-cycles);
@ -821,10 +823,7 @@ DWORD WINAPI run()
// if (!skipnextframe)
// {
//input->process();
//TODO INPUT
void input_process();
input_process();
if (FpsDisplay) osd->addFixed(0, 5, "%02d Fps", fps);
osd->update();