From fdf6f1017c11cd256d2fae3c061d29e10f2e576a Mon Sep 17 00:00:00 2001 From: Haroon Qureshi Date: Wed, 18 Feb 2026 05:42:44 -0800 Subject: [PATCH] Remove `enable_keyboard` flag. PiperOrigin-RevId: 871823567 Change-Id: I1e307f366106aa542a66b68b8e057b35c25134c9 --- src/experimental/platform/window.cc | 5 ----- src/experimental/platform/window.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/experimental/platform/window.cc b/src/experimental/platform/window.cc index 686ac36c..49a72317 100644 --- a/src/experimental/platform/window.cc +++ b/src/experimental/platform/window.cc @@ -112,11 +112,6 @@ Window::Window(std::string_view title, int width, int height, Config config) if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) != 0) { mju_error("Error initializing SDL: %s", SDL_GetError()); } - if (!config_.enable_keyboard) { - SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE); - SDL_EventState(SDL_KEYDOWN, SDL_DISABLE); - SDL_EventState(SDL_KEYUP, SDL_DISABLE); - } int window_flags = SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI; if (renderer_backend == RendererBackend::FilamentVulkan) { diff --git a/src/experimental/platform/window.h b/src/experimental/platform/window.h index 2c53c85c..544bdd92 100644 --- a/src/experimental/platform/window.h +++ b/src/experimental/platform/window.h @@ -35,7 +35,6 @@ class Window { public: struct Config { RendererBackend renderer_backend = RendererBackend::ClassicOpenGl; - bool enable_keyboard = true; bool load_fonts = true; bool offscreen_mode = false; };