namespace BizHawk.Emulation.Common { /// /// This service specifices the interaction of the client and the core in terms of the state of input polling /// A lag frame is a frame in which input was not polled /// Input callbacks fire whenever input is polled /// This service is used for the lag counter on the front end, if available. In addition, /// lua script makes use of input callbacks as well as reporting lag status /// Setters for both the count and lag flag are used by tools who offer custom notions of lag /// Additionally, movie support could in theory make use of input callbacks /// public interface IInputPollable : IEmulatorService { /// /// The lag count. /// int LagCount { get; set; } /// /// If the current frame is a lag frame. /// All cores should define it the same, a lag frame is a frame in which input was not polled. /// bool IsLagFrame { get; set; } IInputCallbackSystem InputCallbacks { get; } } }