| 1 | // LAF OS Library |
| 2 | // Copyright (C) 2021 Igara Studio S.A. |
| 3 | // Copyright (C) 2018 David Capello |
| 4 | // |
| 5 | // This file is released under the terms of the MIT license. |
| 6 | // Read LICENSE.txt for more information. |
| 7 | |
| 8 | #ifdef HAVE_CONFIG_H |
| 9 | #include "config.h" |
| 10 | #endif |
| 11 | |
| 12 | #if LAF_WINDOWS |
| 13 | #include "os/win/event_queue.h" |
| 14 | #elif LAF_MACOS |
| 15 | #include "os/osx/event_queue.h" |
| 16 | #elif LAF_LINUX |
| 17 | #include "os/x11/event_queue.h" |
| 18 | #endif |
| 19 | |
| 20 | namespace os { |
| 21 | |
| 22 | EventQueueImpl g_queue; |
| 23 | |
| 24 | EventQueue* EventQueue::instance() { |
| 25 | return &g_queue; |
| 26 | } |
| 27 | |
| 28 | } // namespace os |
| 29 | |