Moved an if statement out of a function that prevented input.get from working properly with a mouse on movie playback. Just a quick fix.

This commit is contained in:
fatratknight 2009-09-29 21:29:23 +00:00
parent 0b96e69ca2
commit 9706c82a8c
2 changed files with 2 additions and 6 deletions

View File

@ -363,7 +363,8 @@ void FCEUD_UpdateInput()
UpdateGamepad();
if(mouse)
GetMouseData(MouseData);
if(FCEUMOV_Mode() != MOVIEMODE_PLAY) //FatRatKnight: Moved this if out of the function
GetMouseData(MouseData); //A more concise fix may be desired.
}
}

View File

@ -1080,11 +1080,6 @@ void LoadNewGamey(HWND hParent, const char *initialdir)
void GetMouseData(uint32 (&md)[3])
{
if(FCEUMOV_Mode() == MOVIEMODE_PLAY)
{
return;
}
md[0] = mousex;
md[1] = mousey;