Remove enable_keyboard flag.

PiperOrigin-RevId: 871823567
Change-Id: I1e307f366106aa542a66b68b8e057b35c25134c9
This commit is contained in:
Haroon Qureshi
2026-02-18 05:42:44 -08:00
committed by Copybara-Service
parent 8541128853
commit fdf6f1017c
2 changed files with 0 additions and 6 deletions
-5
View File
@@ -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) {
-1
View File
@@ -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;
};