win32: cleanup and fix bug where input is ignored during frameadvance
This commit is contained in:
parent
b3d0485587
commit
ce7cb192ed
|
@ -2176,7 +2176,8 @@ void input_process()
|
||||||
{
|
{
|
||||||
S9xWinScanJoypads();
|
S9xWinScanJoypads();
|
||||||
|
|
||||||
if (paused) return;
|
//not appropriate right now in desmume
|
||||||
|
//if (paused) return;
|
||||||
|
|
||||||
bool R = joypads[0] & RIGHT_MASK;
|
bool R = joypads[0] & RIGHT_MASK;
|
||||||
bool L = joypads[0] & LEFT_MASK;
|
bool L = joypads[0] & LEFT_MASK;
|
||||||
|
|
|
@ -110,6 +110,7 @@ extern SJoypad TurboToggleJoypadStorage[8];
|
||||||
|
|
||||||
void RunInputConfig();
|
void RunInputConfig();
|
||||||
void RunHotkeyConfig();
|
void RunHotkeyConfig();
|
||||||
|
void input_process();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -802,6 +802,8 @@ DWORD WINAPI run()
|
||||||
{
|
{
|
||||||
while(execute)
|
while(execute)
|
||||||
{
|
{
|
||||||
|
input_process();
|
||||||
|
|
||||||
{
|
{
|
||||||
Lock lock;
|
Lock lock;
|
||||||
cycles = NDS_exec((560190<<1)-cycles);
|
cycles = NDS_exec((560190<<1)-cycles);
|
||||||
|
@ -821,10 +823,7 @@ DWORD WINAPI run()
|
||||||
|
|
||||||
// if (!skipnextframe)
|
// if (!skipnextframe)
|
||||||
// {
|
// {
|
||||||
//input->process();
|
|
||||||
//TODO INPUT
|
|
||||||
void input_process();
|
|
||||||
input_process();
|
|
||||||
|
|
||||||
if (FpsDisplay) osd->addFixed(0, 5, "%02d Fps", fps);
|
if (FpsDisplay) osd->addFixed(0, 5, "%02d Fps", fps);
|
||||||
osd->update();
|
osd->update();
|
||||||
|
|
Loading…
Reference in New Issue