mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 02:07:49 +00:00
Pass text input rect to steam deck keyboard invocation
(cherry picked from commit 51dfca813b)
This commit is contained in:
parent
2ba797576b
commit
e874c7515e
1 changed files with 3 additions and 1 deletions
|
|
@ -762,7 +762,9 @@ void X11_ShowScreenKeyboard(SDL_VideoDevice *_this, SDL_Window *window, SDL_Prop
|
|||
break;
|
||||
}
|
||||
(void)SDL_snprintf(deeplink, sizeof(deeplink),
|
||||
"steam://open/keyboard?XPosition=0&YPosition=0&Width=0&Height=0&Mode=%d",
|
||||
"steam://open/keyboard?XPosition=%i&YPosition=%i&Width=%i&Height=%i&Mode=%d",
|
||||
window->text_input_rect.x, window->text_input_rect.y,
|
||||
window->text_input_rect.w, window->text_input_rect.h,
|
||||
mode);
|
||||
SDL_OpenURL(deeplink);
|
||||
videodata->steam_keyboard_open = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue