summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-10-27 19:00:43 +0200
committerDavid Herrmann <dh.herrmann@googlemail.com>2012-10-27 19:00:43 +0200
commite495126c800afc7ff9e6398ae3c980d78db66459 (patch)
tree1c0ea7393be29c58875cbaf8224a9780211bb7c0 /tests
parent8f79d860c1b5e67cfe4c9028169b585716d439aa (diff)
kmscon: add --xkb-model option
This option now allows the user to change the XkbModel from the command line or configuration file. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_input.c b/tests/test_input.c
index dba1bb8..9fcd040 100644
--- a/tests/test_input.c
+++ b/tests/test_input.c
@@ -47,6 +47,7 @@ static struct ev_eloop *eloop;
static struct uterm_input *input;
struct {
+ char *xkb_model;
char *xkb_layout;
char *xkb_variant;
char *xkb_options;
@@ -113,6 +114,7 @@ static void monitor_event(struct uterm_monitor *mon,
return;
ret = uterm_input_new(&input, eloop,
+ input_conf.xkb_model,
input_conf.xkb_layout,
input_conf.xkb_variant,
input_conf.xkb_options,
@@ -160,6 +162,7 @@ static void print_help()
TEST_HELP
"\n"
"Input Device Options:\n"
+ "\t --xkb-model <model> [-] Set XkbModel for input devices\n"
"\t --xkb-layout <layout> [-] Set XkbLayout for input devices\n"
"\t --xkb-variant <variant> [-] Set XkbVariant for input devices\n"
"\t --xkb-options <options> [-] Set XkbOptions for input devices\n",
@@ -176,6 +179,7 @@ static void print_help()
struct conf_option options[] = {
TEST_OPTIONS,
+ CONF_OPTION_STRING(0, "xkb-model", &input_conf.xkb_model, ""),
CONF_OPTION_STRING(0, "xkb-layout", &input_conf.xkb_layout, ""),
CONF_OPTION_STRING(0, "xkb-variant", &input_conf.xkb_variant, ""),
CONF_OPTION_STRING(0, "xkb-options", &input_conf.xkb_options, ""),