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) {
|
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) != 0) {
|
||||||
mju_error("Error initializing SDL: %s", SDL_GetError());
|
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;
|
int window_flags = SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI;
|
||||||
if (renderer_backend == RendererBackend::FilamentVulkan) {
|
if (renderer_backend == RendererBackend::FilamentVulkan) {
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ class Window {
|
|||||||
public:
|
public:
|
||||||
struct Config {
|
struct Config {
|
||||||
RendererBackend renderer_backend = RendererBackend::ClassicOpenGl;
|
RendererBackend renderer_backend = RendererBackend::ClassicOpenGl;
|
||||||
bool enable_keyboard = true;
|
|
||||||
bool load_fonts = true;
|
bool load_fonts = true;
|
||||||
bool offscreen_mode = false;
|
bool offscreen_mode = false;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user