Remove enable_keyboard flag.
PiperOrigin-RevId: 871823567 Change-Id: I1e307f366106aa542a66b68b8e057b35c25134c9
This commit is contained in:
committed by
Copybara-Service
parent
8541128853
commit
fdf6f1017c
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user