mirror of https://github.com/PCSX2/pcsx2.git
parent
c70d833a5e
commit
6ef57bf7d6
|
@ -21,9 +21,6 @@
|
||||||
path = 3rdparty/rapidyaml/rapidyaml
|
path = 3rdparty/rapidyaml/rapidyaml
|
||||||
url = https://github.com/biojppm/rapidyaml.git
|
url = https://github.com/biojppm/rapidyaml.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "3rdparty/imgui/imgui"]
|
|
||||||
path = 3rdparty/imgui/imgui
|
|
||||||
url = https://github.com/ocornut/imgui.git
|
|
||||||
[submodule "3rdparty/glslang/glslang"]
|
[submodule "3rdparty/glslang/glslang"]
|
||||||
path = 3rdparty/glslang/glslang
|
path = 3rdparty/glslang/glslang
|
||||||
url = https://github.com/KhronosGroup/glslang.git
|
url = https://github.com/KhronosGroup/glslang.git
|
||||||
|
|
|
@ -1,19 +1,21 @@
|
||||||
add_library(imgui
|
add_library(imgui
|
||||||
imgui/imconfig.h
|
include/imconfig.h
|
||||||
imgui/imgui.cpp
|
include/imgui.h
|
||||||
imgui/imgui.h
|
include/imgui_internal.h
|
||||||
imgui/imgui_demo.cpp
|
include/imgui_stdlib.h
|
||||||
imgui/imgui_draw.cpp
|
include/imstb_textedit.h
|
||||||
imgui/imgui_internal.h
|
src/imgui.cpp
|
||||||
imgui/imgui_tables.cpp
|
src/imgui_demo.cpp
|
||||||
imgui/imgui_widgets.cpp
|
src/imgui_draw.cpp
|
||||||
imgui/imstb_rectpack.h
|
src/imgui_tables.cpp
|
||||||
imgui/imstb_textedit.h
|
src/imgui_widgets.cpp
|
||||||
imgui/imstb_truetype.h
|
src/imstb_rectpack.h
|
||||||
imgui/misc/cpp/imgui_stdlib.cpp
|
src/imstb_truetype.h
|
||||||
|
src/imgui_stdlib.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/imgui" "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
target_include_directories(imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||||
|
target_include_directories(imgui PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
||||||
|
|
||||||
# Needed for macOS compile.
|
# Needed for macOS compile.
|
||||||
set_property(TARGET imgui PROPERTY CXX_STANDARD 17)
|
set_property(TARGET imgui PROPERTY CXX_STANDARD 17)
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 60bea052a92cbb4a93b221002fdf04f0da3698e1
|
|
|
@ -32,7 +32,7 @@
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\glad\include;$(ProjectDir)imgui;$(ProjectDir)include;$(ProjectDir)src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\glad\include;$(ProjectDir)include;$(ProjectDir)src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -41,21 +41,21 @@
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="imgui\imconfig.h" />
|
<ClInclude Include="include\imconfig.h" />
|
||||||
<ClInclude Include="imgui\imgui.h" />
|
<ClInclude Include="include\imgui.h" />
|
||||||
<ClInclude Include="imgui\imgui_internal.h" />
|
<ClInclude Include="include\imgui_internal.h" />
|
||||||
<ClInclude Include="imgui\imstb_rectpack.h" />
|
<ClInclude Include="include\imstb_rectpack.h" />
|
||||||
<ClInclude Include="imgui\imstb_textedit.h" />
|
<ClInclude Include="include\imstb_textedit.h" />
|
||||||
<ClInclude Include="imgui\imstb_truetype.h" />
|
<ClInclude Include="include\imstb_truetype.h" />
|
||||||
<ClInclude Include="imgui\misc\cpp\imgui_stdlib.h" />
|
<ClInclude Include="include\imgui_stdlib.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="imgui\imgui.cpp" />
|
<ClCompile Include="src\imgui.cpp" />
|
||||||
<ClCompile Include="imgui\imgui_demo.cpp" />
|
<ClCompile Include="src\imgui_demo.cpp" />
|
||||||
<ClCompile Include="imgui\imgui_draw.cpp" />
|
<ClCompile Include="src\imgui_draw.cpp" />
|
||||||
<ClCompile Include="imgui\imgui_tables.cpp" />
|
<ClCompile Include="src\imgui_tables.cpp" />
|
||||||
<ClCompile Include="imgui\imgui_widgets.cpp" />
|
<ClCompile Include="src\imgui_widgets.cpp" />
|
||||||
<ClCompile Include="imgui\misc\cpp\imgui_stdlib.cpp" />
|
<ClCompile Include="src\imgui_stdlib.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets" />
|
<ImportGroup Label="ExtensionTargets" />
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="imgui\imconfig.h" />
|
<ClInclude Include="include\imconfig.h" />
|
||||||
<ClInclude Include="imgui\imgui.h" />
|
<ClInclude Include="include\imgui.h" />
|
||||||
<ClInclude Include="imgui\imgui_internal.h" />
|
<ClInclude Include="include\imgui_internal.h" />
|
||||||
<ClInclude Include="imgui\imstb_rectpack.h" />
|
<ClInclude Include="include\imstb_rectpack.h" />
|
||||||
<ClInclude Include="imgui\imstb_textedit.h" />
|
<ClInclude Include="include\imstb_textedit.h" />
|
||||||
<ClInclude Include="imgui\imstb_truetype.h" />
|
<ClInclude Include="include\imstb_truetype.h" />
|
||||||
<ClInclude Include="imgui\misc\cpp\imgui_stdlib.h" />
|
<ClInclude Include="include\imgui_stdlib.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="imgui\imgui.cpp" />
|
<ClCompile Include="src\imgui.cpp" />
|
||||||
<ClCompile Include="imgui\imgui_demo.cpp" />
|
<ClCompile Include="src\imgui_demo.cpp" />
|
||||||
<ClCompile Include="imgui\imgui_draw.cpp" />
|
<ClCompile Include="src\imgui_draw.cpp" />
|
||||||
<ClCompile Include="imgui\imgui_tables.cpp" />
|
<ClCompile Include="src\imgui_tables.cpp" />
|
||||||
<ClCompile Include="imgui\imgui_widgets.cpp" />
|
<ClCompile Include="src\imgui_widgets.cpp" />
|
||||||
<ClCompile Include="imgui\misc\cpp\imgui_stdlib.cpp" />
|
<ClCompile Include="src\imgui_stdlib.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -4257,6 +4257,12 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
|
||||||
unsigned int c = (unsigned int)io.InputQueueCharacters[n];
|
unsigned int c = (unsigned int)io.InputQueueCharacters[n];
|
||||||
if (c == '\t') // Skip Tab, see above.
|
if (c == '\t') // Skip Tab, see above.
|
||||||
continue;
|
continue;
|
||||||
|
if (c == '\b')
|
||||||
|
{
|
||||||
|
state->OnKeyPressed(STB_TEXTEDIT_K_BACKSPACE);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard))
|
if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard))
|
||||||
state->OnKeyPressed((int)c);
|
state->OnKeyPressed((int)c);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "fmt/core.h"
|
#include "fmt/core.h"
|
||||||
#include "HostDisplay.h"
|
#include "HostDisplay.h"
|
||||||
#include "imgui_internal.h"
|
#include "imgui_internal.h"
|
||||||
#include "misc/cpp/imgui_stdlib.h"
|
#include "imgui_stdlib.h"
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\libpng;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\libpng;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\glad\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\glad\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\cubeb\cubeb\include;$(SolutionDir)3rdparty\cubeb\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\cubeb\cubeb\include;$(SolutionDir)3rdparty\cubeb\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\imgui\imgui;$(SolutionDir)3rdparty\imgui\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\imgui\include;$(SolutionDir)3rdparty\imgui\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\libzip;$(SolutionDir)3rdparty\libzip\libzip\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\libzip;$(SolutionDir)3rdparty\libzip\libzip\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\d3d12memalloc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\d3d12memalloc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(SolutionDir)3rdparty\zstd\zstd\lib</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(SolutionDir)3rdparty\zstd\zstd\lib</AdditionalIncludeDirectories>
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\libpng;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\libpng;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\glad\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\glad\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\cubeb\cubeb\include;$(SolutionDir)3rdparty\cubeb\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\cubeb\cubeb\include;$(SolutionDir)3rdparty\cubeb\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\imgui\imgui;$(SolutionDir)3rdparty\imgui\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\imgui\include;$(SolutionDir)3rdparty\imgui\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\simpleini\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\simpleini\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\sdl2\include;$(SolutionDir)3rdparty\sdl2\SDL\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\sdl2\include;$(SolutionDir)3rdparty\sdl2\SDL\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\libzip;$(SolutionDir)3rdparty\libzip\libzip\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\libzip;$(SolutionDir)3rdparty\libzip\libzip\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
|
Loading…
Reference in New Issue