mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-02 12:32:03 +01:00
NativeShutdownGraphics, which Android runs whenever the app loses its surface, destroyed the imgui context and the ImDebugger along with the device objects, so window layout and debugger state reset on return. Now only the device objects go there (the backend already recreates them), and the context and debugger are torn down in NativeShutdown. Both configs are still saved on device loss, in case the app is killed in the background. imgui.ini is now read and written through our File API rather than imgui's fopen, which can't reach a memstick behind a content URI. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
22 lines
663 B
C++
22 lines
663 B
C++
#pragma once
|
|
|
|
#include "ext/imgui/imgui.h"
|
|
#include "Common/Input/KeyCodes.h"
|
|
#include "Common/Input/InputState.h"
|
|
#include "Common/Math/geom2d.h"
|
|
|
|
class Path;
|
|
|
|
ImGuiKey KeyCodeToImGui(InputKeyCode keyCode);
|
|
|
|
void ImGui_ImplPlatform_Init(const Path &configPath);
|
|
void ImGui_ImplPlatform_NewFrame();
|
|
// Writes the ini if imgui asked for it, or always if force is set. Call after ImGui::Render.
|
|
void ImGui_ImplPlatform_SaveIni(bool force);
|
|
|
|
void ImGui_ImplPlatform_KeyEvent(const KeyInput &key);
|
|
void ImGui_ImplPlatform_TouchEvent(const TouchInput &touch);
|
|
void ImGui_ImplPlatform_AxisEvent(const AxisInput &axis);
|
|
|
|
ImGuiMouseCursor ImGui_ImplPlatform_GetCursor();
|