mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 22:47:58 -05:00
Implemented graceful closing of the GLFW window, along with emulation.
This commit is contained in:
@ -29,6 +29,11 @@ void EmuWindow_GLFW::OnKeyEvent(GLFWwindow* win, int key, int scancode, int acti
|
||||
HID_User::PadUpdateComplete();
|
||||
}
|
||||
|
||||
/// Whether the window is still open, and a close request hasn't yet been sent
|
||||
const bool EmuWindow_GLFW::IsOpen() {
|
||||
return glfwWindowShouldClose(m_render_window) != 0;
|
||||
}
|
||||
|
||||
/// EmuWindow_GLFW constructor
|
||||
EmuWindow_GLFW::EmuWindow_GLFW() {
|
||||
keyboard_id = KeyMap::NewDeviceId();
|
||||
|
Reference in New Issue
Block a user