small ordering change for lua input processing so that event.framestart can set buttons

This commit is contained in:
zeromus 2014-05-03 09:02:17 +00:00
parent 26c30c44ca
commit 55f87af633
1 changed files with 7 additions and 3 deletions

View File

@ -2495,14 +2495,18 @@ namespace BizHawk.Client.EmuHawk
GlobalWin.OSD.ClearGUIText();
Global.CheatList.Pulse();
//zero 03-may-2014 - moved this before call to UpdateToolsBefore(), since it seems to clear the state which a lua event.framestart is going to want to alter
Global.ClickyVirtualPadController.FrameTick();
Global.LuaAndAdaptor.FrameTick();
//zero 03-may-2014 - there is a bug in here: lua should be updating even when turboing
//please remove lua event-firing from gui viewing tools -related code
if (!isTurboing)
{
GlobalWin.Tools.UpdateToolsBefore();
}
Global.ClickyVirtualPadController.FrameTick();
Global.LuaAndAdaptor.FrameTick();
_runloopFps++;
if ((DateTime.Now - _runloopSecond).TotalSeconds > 1)