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);
|
||||
}
|
||||
|
||||
void UpdateRawInputAndHotkeys()
|
||||
{
|
||||
KeyboardUpdateState();
|
||||
UpdateJoysticks();
|
||||
|
||||
HandleHotkeys();
|
||||
}
|
||||
|
||||
void FCEUD_UpdateInput()
|
||||
{
|
||||
bool joy=false,mouse=false;
|
||||
EMOVIEMODE FCEUMOVState = FCEUMOV_Mode();
|
||||
|
||||
KeyboardUpdateState();
|
||||
UpdateJoysticks();
|
||||
|
||||
HandleHotkeys();
|
||||
UpdateRawInputAndHotkeys();
|
||||
|
||||
{
|
||||
for(int x=0;x<2;x++)
|
||||
|
|
|
@ -23,6 +23,7 @@ void InputScreenChanged(int fs);
|
|||
void SetAutoFireDesynch(int DesynchOn);
|
||||
int GetAutoFireDesynch();
|
||||
uint32 GetGamepadPressedImmediate();
|
||||
void UpdateRawInputAndHotkeys();
|
||||
|
||||
extern LPDIRECTINPUT7 lpDI;
|
||||
|
||||
|
|
|
@ -822,6 +822,8 @@ doloopy:
|
|||
//xbsave = NULL;
|
||||
RedrawWindow(hAppWnd,0,0,RDW_ERASE|RDW_INVALIDATE);
|
||||
}
|
||||
else
|
||||
UpdateRawInputAndHotkeys();
|
||||
Sleep(50);
|
||||
if(!exiting)
|
||||
goto doloopy;
|
||||
|
|
Loading…
Reference in New Issue