entry_asmjs.cpp 636 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright 2011-2014 Branimir Karadzic. All rights reserved.
  3. * License: http://www.opensource.org/licenses/BSD-2-Clause
  4. */
  5. #include "entry_p.h"
  6. #if BX_PLATFORM_EMSCRIPTEN
  7. #include <emscripten.h>
  8. namespace entry
  9. {
  10. const Event* poll()
  11. {
  12. return NULL;
  13. }
  14. void release(const Event* /*_event*/)
  15. {
  16. }
  17. void setWindowSize(uint32_t /*_width*/, uint32_t /*_height*/)
  18. {
  19. }
  20. void setWindowTitle(const char* _title)
  21. {
  22. BX_UNUSED(_title);
  23. }
  24. void toggleWindowFrame()
  25. {
  26. }
  27. void setMouseLock(bool /*_lock*/)
  28. {
  29. }
  30. }
  31. int main(int _argc, char** _argv)
  32. {
  33. return entry::main(_argc, _argv);
  34. }
  35. #endif // BX_PLATFORM_EMSCRIPTEN