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; };