X11: Values >= 1 enable keyboard

This commit is contained in:
Christoph "baka0815" Schwerdtfeger 2018-08-12 15:17:56 +02:00
parent d6ae37ed2a
commit 21ea713032
1 changed files with 3 additions and 1 deletions

View File

@ -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()