PolyEventHandler.h 577 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * PolyEventHandler.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 3/28/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Events
  10. #pragma once
  11. #include "PolyLogger.h"
  12. #include "PolyGlobals.h"
  13. #include "PolyEvent.h"
  14. //#ifdef _COMPILE_LUA
  15. #include "PolyLuaEventStuff.h"
  16. //#endif
  17. namespace Polycode {
  18. class _PolyExport EventHandler {
  19. public:
  20. EventHandler();
  21. ~EventHandler();
  22. #ifdef _COMPILE_LUA
  23. SWIGLUA_REF onEvent;
  24. #endif
  25. void secondaryHandler(Event *event);
  26. virtual void handleEvent(Event *event){}
  27. private:
  28. };
  29. }