Skip to content

Commit

Permalink
WIP: Add alias for (counter-)clockwise dial controls to xsetwacom
Browse files Browse the repository at this point in the history
  • Loading branch information
jigpu committed Jun 28, 2024
1 parent e53be5d commit b3815aa
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions tools/xsetwacom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. ",
Expand All @@ -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. ",
Expand Down Expand Up @@ -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. ",
Expand All @@ -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. ",
Expand Down

0 comments on commit b3815aa

Please sign in to comment.