X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fevent.h;h=ae6ab3821a4a454b64a02fed31af9c15b9d026dd;hb=10f249cb763ddc00cd80e1d47940784e25d3e4a7;hp=5565bec85af9a324134c2a6d2a7f6b6c2997da52;hpb=e59be45a88e762db237f5574a8b874b9ec504fba;p=virtualjaguar diff --git a/src/event.h b/src/event.h index 5565bec..ae6ab38 100644 --- a/src/event.h +++ b/src/event.h @@ -7,10 +7,14 @@ #ifndef __EVENT_H__ #define __EVENT_H__ -#include "types.h" +enum { EVENT_MAIN, EVENT_JERRY }; +//NTSC Timings... #define RISC_CYCLE_IN_USEC 0.03760684198 #define M68K_CYCLE_IN_USEC (RISC_CYCLE_IN_USEC * 2) +//PAL Timings +#define RISC_CYCLE_PAL_IN_USEC 0.03760260812 +#define M68K_CYCLE_PAL_IN_USEC (RISC_CYCLE_PAL_IN_USEC * 2) #define HORIZ_PERIOD_IN_USEC_NTSC 63.555555555 #define HORIZ_PERIOD_IN_USEC_PAL 64.0 @@ -19,10 +23,10 @@ #define USEC_TO_M68K_CYCLES(u) (uint32)(((u) / M68K_CYCLE_IN_USEC) + 0.5) void InitializeEventList(void); -void SetCallbackTime(void (* callback)(void), double time); +void SetCallbackTime(void (* callback)(void), double time, int type = EVENT_MAIN); void RemoveCallback(void (* callback)(void)); void AdjustCallbackTime(void (* callback)(void), double time); -double GetTimeToNextEvent(void); -void HandleNextEvent(void); +double GetTimeToNextEvent(int type = EVENT_MAIN); +void HandleNextEvent(int type = EVENT_MAIN); #endif // __EVENT_H__