PolyEventHandler.cpp 508 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * PolyEventHandler.cpp
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 3/28/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. #include "PolyEventHandler.h"
  10. namespace Polycode {
  11. EventHandler::EventHandler() {
  12. #ifdef _COMPILE_LUA
  13. onEvent.L = 0;
  14. onEvent.ref = 0;
  15. #endif
  16. }
  17. void EventHandler::secondaryHandler(Event *event) {
  18. #ifdef _COMPILE_LUA
  19. if(onEvent.L != 0)
  20. handlePolyLuaEvent(&onEvent, (void*)event);
  21. #endif
  22. }
  23. EventHandler::~EventHandler() {
  24. }
  25. }