Merge pull request #1283 from reicast/baka/X11_keyboardsiable

X11: Values <= 0 disable keyboard
This commit is contained in:
Christoph 2018-08-12 17:54:11 +02:00 committed by GitHub
commit 989c0fa776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()