win32: poll hotkeys while no rom is loaded
This commit is contained in:
parent
2728d05731
commit
469a7bed9b
|
@ -385,15 +385,20 @@ void HandleHotkeys()
|
||||||
FCEUI_HandleEmuCommands(FCEUD_TestCommandState);
|
FCEUI_HandleEmuCommands(FCEUD_TestCommandState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void UpdateRawInputAndHotkeys()
|
||||||
|
{
|
||||||
|
KeyboardUpdateState();
|
||||||
|
UpdateJoysticks();
|
||||||
|
|
||||||
|
HandleHotkeys();
|
||||||
|
}
|
||||||
|
|
||||||
void FCEUD_UpdateInput()
|
void FCEUD_UpdateInput()
|
||||||
{
|
{
|
||||||
bool joy=false,mouse=false;
|
bool joy=false,mouse=false;
|
||||||
EMOVIEMODE FCEUMOVState = FCEUMOV_Mode();
|
EMOVIEMODE FCEUMOVState = FCEUMOV_Mode();
|
||||||
|
|
||||||
KeyboardUpdateState();
|
UpdateRawInputAndHotkeys();
|
||||||
UpdateJoysticks();
|
|
||||||
|
|
||||||
HandleHotkeys();
|
|
||||||
|
|
||||||
{
|
{
|
||||||
for(int x=0;x<2;x++)
|
for(int x=0;x<2;x++)
|
||||||
|
|
|
@ -23,6 +23,7 @@ void InputScreenChanged(int fs);
|
||||||
void SetAutoFireDesynch(int DesynchOn);
|
void SetAutoFireDesynch(int DesynchOn);
|
||||||
int GetAutoFireDesynch();
|
int GetAutoFireDesynch();
|
||||||
uint32 GetGamepadPressedImmediate();
|
uint32 GetGamepadPressedImmediate();
|
||||||
|
void UpdateRawInputAndHotkeys();
|
||||||
|
|
||||||
extern LPDIRECTINPUT7 lpDI;
|
extern LPDIRECTINPUT7 lpDI;
|
||||||
|
|
||||||
|
|
|
@ -822,6 +822,8 @@ doloopy:
|
||||||
//xbsave = NULL;
|
//xbsave = NULL;
|
||||||
RedrawWindow(hAppWnd,0,0,RDW_ERASE|RDW_INVALIDATE);
|
RedrawWindow(hAppWnd,0,0,RDW_ERASE|RDW_INVALIDATE);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
UpdateRawInputAndHotkeys();
|
||||||
Sleep(50);
|
Sleep(50);
|
||||||
if(!exiting)
|
if(!exiting)
|
||||||
goto doloopy;
|
goto doloopy;
|
||||||
|
|
Loading…
Reference in New Issue