diff options
Diffstat (limited to 'src/citra/emu_window/emu_window_glfw.cpp')
| -rw-r--r-- | src/citra/emu_window/emu_window_glfw.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/citra/emu_window/emu_window_glfw.cpp b/src/citra/emu_window/emu_window_glfw.cpp index 6cdba2b87..079c5356d 100644 --- a/src/citra/emu_window/emu_window_glfw.cpp +++ b/src/citra/emu_window/emu_window_glfw.cpp | |||
| @@ -29,6 +29,11 @@ void EmuWindow_GLFW::OnKeyEvent(GLFWwindow* win, int key, int scancode, int acti | |||
| 29 | HID_User::PadUpdateComplete(); | 29 | HID_User::PadUpdateComplete(); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | /// Whether the window is still open, and a close request hasn't yet been sent | ||
| 33 | const bool EmuWindow_GLFW::IsOpen() { | ||
| 34 | return glfwWindowShouldClose(m_render_window) != 0; | ||
| 35 | } | ||
| 36 | |||
| 32 | /// EmuWindow_GLFW constructor | 37 | /// EmuWindow_GLFW constructor |
| 33 | EmuWindow_GLFW::EmuWindow_GLFW() { | 38 | EmuWindow_GLFW::EmuWindow_GLFW() { |
| 34 | keyboard_id = KeyMap::NewDeviceId(); | 39 | keyboard_id = KeyMap::NewDeviceId(); |