moved event macros and definitions to event.h from types.h