From 21ea713032ca590539e28ab8023a82e00c3578f2 Mon Sep 17 00:00:00 2001 From: "Christoph \"baka0815\" Schwerdtfeger" Date: Sun, 12 Aug 2018 15:17:56 +0200 Subject: [PATCH] X11: Values >= 1 enable keyboard --- core/linux-dist/x11.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/linux-dist/x11.cpp b/core/linux-dist/x11.cpp index 5fa99ffcd..264558ac2 100644 --- a/core/linux-dist/x11.cpp +++ b/core/linux-dist/x11.cpp @@ -180,7 +180,9 @@ void input_x11_init() x11_keymap[KEY_F] = DC_AXIS_LT; x11_keymap[KEY_V] = DC_AXIS_RT; - x11_keyboard_input = cfgLoadInt("input", "enable_x11_keyboard", 1); + x11_keyboard_input = (cfgLoadInt("input", "enable_x11_keyboard", 1) >= 1); + if (!x11_keyboard_input) + printf("X11 Keyboard input disabled by config.\n"); } void x11_window_create()