diff options
Diffstat (limited to 'src/citra/emu_window/emu_window_glfw.h')
| -rw-r--r-- | src/citra/emu_window/emu_window_glfw.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/citra/emu_window/emu_window_glfw.h b/src/citra/emu_window/emu_window_glfw.h deleted file mode 100644 index 7ccd5e6aa..000000000 --- a/src/citra/emu_window/emu_window_glfw.h +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <utility> | ||
| 8 | |||
| 9 | #include "common/emu_window.h" | ||
| 10 | |||
| 11 | struct GLFWwindow; | ||
| 12 | |||
| 13 | class EmuWindow_GLFW : public EmuWindow { | ||
| 14 | public: | ||
| 15 | EmuWindow_GLFW(); | ||
| 16 | ~EmuWindow_GLFW(); | ||
| 17 | |||
| 18 | /// Swap buffers to display the next frame | ||
| 19 | void SwapBuffers() override; | ||
| 20 | |||
| 21 | /// Polls window events | ||
| 22 | void PollEvents() override; | ||
| 23 | |||
| 24 | /// Makes the graphics context current for the caller thread | ||
| 25 | void MakeCurrent() override; | ||
| 26 | |||
| 27 | /// Releases (dunno if this is the "right" word) the GLFW context from the caller thread | ||
| 28 | void DoneCurrent() override; | ||
| 29 | |||
| 30 | static void OnKeyEvent(GLFWwindow* win, int key, int scancode, int action, int mods); | ||
| 31 | |||
| 32 | static void OnMouseButtonEvent(GLFWwindow* window, int button, int action, int mods); | ||
| 33 | |||
| 34 | static void OnCursorPosEvent(GLFWwindow* window, double x, double y); | ||
| 35 | |||
| 36 | /// Whether the window is still open, and a close request hasn't yet been sent | ||
| 37 | const bool IsOpen(); | ||
| 38 | |||
| 39 | static void OnClientAreaResizeEvent(GLFWwindow* win, int width, int height); | ||
| 40 | |||
| 41 | static void OnFramebufferResizeEvent(GLFWwindow* win, int width, int height); | ||
| 42 | |||
| 43 | void ReloadSetKeymaps() override; | ||
| 44 | |||
| 45 | private: | ||
| 46 | void OnMinimalClientAreaChangeRequest(const std::pair<unsigned,unsigned>& minimal_size) override; | ||
| 47 | |||
| 48 | static EmuWindow_GLFW* GetEmuWindow(GLFWwindow* win); | ||
| 49 | |||
| 50 | GLFWwindow* m_render_window; ///< Internal GLFW render window | ||
| 51 | |||
| 52 | /// Device id of keyboard for use with KeyMap | ||
| 53 | int keyboard_id; | ||
| 54 | }; | ||