mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 09:24:58 +00:00
Devtools - Shader editing (#1705)
* devtools: shader editing and compiling * devtools: patch shader at runtime * devtools: shader editing load patch even with config disabled
This commit is contained in:
parent
f623613d12
commit
f1b23c616e
19 changed files with 466 additions and 103 deletions
|
@ -168,6 +168,21 @@ void WindowSDL::InitTimers() {
|
|||
SDL_AddTimer(100, &PollController, controller);
|
||||
}
|
||||
|
||||
void WindowSDL::RequestKeyboard() {
|
||||
if (keyboard_grab == 0) {
|
||||
SDL_StartTextInput(window);
|
||||
}
|
||||
keyboard_grab++;
|
||||
}
|
||||
|
||||
void WindowSDL::ReleaseKeyboard() {
|
||||
ASSERT(keyboard_grab > 0);
|
||||
keyboard_grab--;
|
||||
if (keyboard_grab == 0) {
|
||||
SDL_StopTextInput(window);
|
||||
}
|
||||
}
|
||||
|
||||
void WindowSDL::OnResize() {
|
||||
SDL_GetWindowSizeInPixels(window, &width, &height);
|
||||
ImGui::Core::OnResize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue