entry_qnx.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright 2011-2015 Branimir Karadzic. All rights reserved.
  3. * License: http://www.opensource.org/licenses/BSD-2-Clause
  4. */
  5. #include "entry_p.h"
  6. #if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_QNX
  7. #include <stdio.h>
  8. namespace entry
  9. {
  10. const Event* poll()
  11. {
  12. return NULL;
  13. }
  14. const Event* poll(WindowHandle _handle)
  15. {
  16. BX_UNUSED(_handle);
  17. return NULL;
  18. }
  19. void release(const Event* _event)
  20. {
  21. BX_UNUSED(_event);
  22. }
  23. WindowHandle createWindow(int32_t _x, int32_t _y, uint32_t _width, uint32_t _height, uint32_t _flags, const char* _title)
  24. {
  25. BX_UNUSED(_x, _y, _width, _height, _flags, _title);
  26. WindowHandle handle = { UINT16_MAX };
  27. return handle;
  28. }
  29. void destroyWindow(WindowHandle _handle)
  30. {
  31. BX_UNUSED(_handle);
  32. }
  33. void setWindowPos(WindowHandle _handle, int32_t _x, int32_t _y)
  34. {
  35. BX_UNUSED(_handle, _x, _y);
  36. }
  37. void setWindowSize(WindowHandle _handle, uint32_t _width, uint32_t _height)
  38. {
  39. BX_UNUSED(_handle, _width, _height);
  40. }
  41. void setWindowTitle(WindowHandle _handle, const char* _title)
  42. {
  43. BX_UNUSED(_handle, _title);
  44. }
  45. void toggleWindowFrame(WindowHandle _handle)
  46. {
  47. BX_UNUSED(_handle);
  48. }
  49. void setMouseLock(WindowHandle _handle, bool _lock)
  50. {
  51. BX_UNUSED(_handle, _lock);
  52. }
  53. } // namespace entry
  54. int main(int _argc, char** _argv)
  55. {
  56. entry::main(_argc, _argv);
  57. }
  58. #endif // ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_QNX