From b3815aa3226efb076b79d4f824bf8f1cb0bd2378 Mon Sep 17 00:00:00 2001 From: Jason Gerecke Date: Fri, 28 Jun 2024 14:54:12 -0700 Subject: [PATCH] WIP: Add alias for (counter-)clockwise dial controls to xsetwacom --- tools/xsetwacom.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 5f74b900..3228dc70 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -300,6 +300,16 @@ static param_t parameters[] = .set_func = map_actions, .get_func = get_map, }, + { + .name = "DialCCW", + .desc = "X11 event to which counter-clockwise motion of the dial should be mapped." , + .prop_name = WACOM_PROP_WHEELBUTTONS, + .prop_format = 8, + .prop_offset = 0, + .arg_count = 0, + .set_func = map_actions, + .get_func = get_map, + }, { .name = "RelWheelDown", .desc = "X11 event to which relative wheel down should be mapped. ", @@ -310,6 +320,16 @@ static param_t parameters[] = .set_func = map_actions, .get_func = get_map, }, + { + .name = "DialCW", + .desc = "X11 event to which clockwise motion of the dial should be mapped." , + .prop_name = WACOM_PROP_WHEELBUTTONS, + .prop_format = 8, + .prop_offset = 1, + .arg_count = 0, + .set_func = map_actions, + .get_func = get_map, + }, { .name = "AbsWheelUp", .desc = "X11 event to which absolute wheel up should be mapped. ", @@ -360,6 +380,16 @@ static param_t parameters[] = .set_func = map_actions, .get_func = get_map, }, + { + .name = "Dial2CW", + .desc = "X11 event to which clockwise motion of the 2nd dial should be mapped. ", + .prop_name = WACOM_PROP_WHEELBUTTONS, + .prop_format = 8, + .prop_offset = 6, + .arg_count = 0, + .set_func = map_actions, + .get_func = get_map, + }, { .name = "RelWheel2Down", .desc = "X11 event to which 2nd relative wheel down should be mapped. ", @@ -370,6 +400,16 @@ static param_t parameters[] = .set_func = map_actions, .get_func = get_map, }, + { + .name = "Dial2CCW", + .desc = "X11 event to which counter-clockwise motion of the 2nd dial should be mapped. ", + .prop_name = WACOM_PROP_WHEELBUTTONS, + .prop_format = 8, + .prop_offset = 7, + .arg_count = 0, + .set_func = map_actions, + .get_func = get_map, + }, { .name = "StripLeftUp", .desc = "X11 event to which left strip up should be mapped. ",