Provide option to disable keyboard events for SDL.
PiperOrigin-RevId: 822154396 Change-Id: Ie4c8537de2c4b01437aae00ed6d6af1a8f419a73
This commit is contained in:
committed by
Copybara-Service
parent
9e1ed0720b
commit
25f5be82ff
@@ -56,14 +56,16 @@ namespace mujoco::studio {
|
||||
// - "passive" mode
|
||||
// - async physics
|
||||
|
||||
static constexpr toolbox::Window::Config kWindowConfig =
|
||||
static constexpr toolbox::Window::Config kWindowConfig = {
|
||||
#if defined(USE_FILAMENT_VULKAN)
|
||||
toolbox::Window::Config::kFilamentVulkan;
|
||||
.render_config = toolbox::Window::RenderConfig::kFilamentVulkan,
|
||||
#elif defined(USE_FILAMENT_OPENGL)
|
||||
toolbox::Window::Config::kFilamentOpenGL;
|
||||
.render_config = toolbox::Window::RenderConfig::kFilamentOpenGL,
|
||||
#elif defined(USE_CLASSIC_OPENGL)
|
||||
toolbox::Window::Config::kClassicOpenGL;
|
||||
.render_config = toolbox::Window::RenderConfig::kClassicOpenGL,
|
||||
#endif
|
||||
.enable_keyboard = true,
|
||||
};
|
||||
|
||||
|
||||
static void ToggleWindow(bool& window) {
|
||||
|
||||
Reference in New Issue
Block a user