win32: poll hotkeys while no rom is loaded

This commit is contained in:
zeromus 2011-06-16 17:19:57 +00:00
parent 2728d05731
commit 469a7bed9b
3 changed files with 12 additions and 4 deletions

View File

@ -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++)

View File

@ -23,6 +23,7 @@ void InputScreenChanged(int fs);
void SetAutoFireDesynch(int DesynchOn);
int GetAutoFireDesynch();
uint32 GetGamepadPressedImmediate();
void UpdateRawInputAndHotkeys();
extern LPDIRECTINPUT7 lpDI;

View File

@ -822,6 +822,8 @@ doloopy:
//xbsave = NULL;
RedrawWindow(hAppWnd,0,0,RDW_ERASE|RDW_INVALIDATE);
}
else
UpdateRawInputAndHotkeys();
Sleep(50);
if(!exiting)
goto doloopy;