diff options
author | Spencer Michaels <spencer@smichaels.net> | 2018-11-17 14:31:33 -0500 |
---|---|---|
committer | Spencer Michaels <spencer@smichaels.net> | 2018-11-18 13:49:30 -0500 |
commit | 70bc4c3ab6c408850543d827f788ef310fdb269c (patch) | |
tree | 265d4ea923f1329d1e7661c0f92a242337318d58 /include | |
parent | b87250425fe13149e41b346f15c5cf808f376438 (diff) | |
download | sway-70bc4c3ab6c408850543d827f788ef310fdb269c.tar.xz |
Add scroll factor config option.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/config.h | 1 | ||||
-rw-r--r-- | include/util.h | 6 |
3 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 6606775a..2fe8a631 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h @@ -229,6 +229,7 @@ sway_cmd input_cmd_map_to_output; sway_cmd input_cmd_middle_emulation; sway_cmd input_cmd_natural_scroll; sway_cmd input_cmd_pointer_accel; +sway_cmd input_cmd_scroll_factor; sway_cmd input_cmd_repeat_delay; sway_cmd input_cmd_repeat_rate; sway_cmd input_cmd_scroll_button; diff --git a/include/sway/config.h b/include/sway/config.h index 79c4359b..658b4a01 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -100,6 +100,7 @@ struct input_config { int middle_emulation; int natural_scroll; float pointer_accel; + float scroll_factor; int repeat_delay; int repeat_rate; int scroll_button; diff --git a/include/util.h b/include/util.h index f143d0c0..84318fe7 100644 --- a/include/util.h +++ b/include/util.h @@ -59,6 +59,12 @@ uint32_t parse_color(const char *color); */ bool parse_boolean(const char *boolean, bool current); +/** + * Given a string that represents a floating point value, return a float. + * Returns NAN on error. + */ +float parse_float(const char *value); + enum wlr_direction opposite_direction(enum wlr_direction d); #endif |