diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-04-14 12:08:33 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-04-17 12:49:43 +1000 |
commit | a6c4115692a46243f911aa7588bb4dbb25ef9faa (patch) | |
tree | 25c70b591ec921729f363c9957b3773e4984c7a1 /tools/shared.h | |
parent | 3c500b597c4eeb1ab4b279387f99da4acecc8ba1 (diff) | |
download | libinput-a6c4115692a46243f911aa7588bb4dbb25ef9faa.tar.gz |
Add middle mouse button emulation config options
Adds the following quartett of functions to enable/disable middle mouse button
emulation on a device:
libinput_device_config_middle_emulation_is_available()
libinput_device_config_middle_emulation_set_enabled()
libinput_device_config_middle_emulation_get_enabled()
libinput_device_config_middle_emulation_get_default_enabled()
This patch only adds the config framework, it is not hooked up to anything
yet.
Note: like other features this is merely the config option, some devices will
provide middle button emulation without exposing it as configuration. i.e. the
return value of libinput_device_config_middle_emulation_is_available() only
tells you whether you can _configure_ middle button emulation.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/shared.h')
-rw-r--r-- | tools/shared.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/shared.h b/tools/shared.h index caf48558..01edffc9 100644 --- a/tools/shared.h +++ b/tools/shared.h @@ -39,6 +39,7 @@ struct tools_options { int tapping; int natural_scroll; int left_handed; + int middlebutton; enum libinput_config_click_method click_method; double speed; }; |