From 9706c82a8c6745c23d7331e4e4f89295b2fe4c13 Mon Sep 17 00:00:00 2001 From: fatratknight Date: Tue, 29 Sep 2009 21:29:23 +0000 Subject: [PATCH] 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. --- src/drivers/win/input.cpp | 3 ++- src/drivers/win/window.cpp | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/drivers/win/input.cpp b/src/drivers/win/input.cpp index 6249f6e3..17344779 100644 --- a/src/drivers/win/input.cpp +++ b/src/drivers/win/input.cpp @@ -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. } } diff --git a/src/drivers/win/window.cpp b/src/drivers/win/window.cpp index 5d43885d..9a62b944 100644 --- a/src/drivers/win/window.cpp +++ b/src/drivers/win/window.cpp @@ -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;