Struct MirTouchpadConfig

Struct Documentation

struct MirTouchpadConfig

Public Functions

MirTouchpadConfig()
MirTouchpadConfig(MirTouchpadConfig &&other)
MirTouchpadConfig(MirTouchpadConfig const &other)
MirTouchpadConfig &operator=(MirTouchpadConfig const &other)
~MirTouchpadConfig()
MirTouchpadConfig(MirTouchpadClickMode click_mode, MirTouchpadScrollMode scroll_mode, int button_down_scroll_button, bool tap_to_click, bool disable_while_typing, bool disable_with_external_mouse, bool middle_mouse_button_emulation)
MirTouchpadClickMode click_mode() const

The click mode defines when the touchpad generates software emulated button events.

void click_mode(MirTouchpadClickMode mode)
MirTouchpadScrollMode scroll_mode() const

The scroll mode defines when the touchpad generates scroll events instead of pointer motion events.

void scroll_mode(MirTouchpadScrollMode mode)
int button_down_scroll_button() const

Configures the button used for the on-button-down scroll mode

void button_down_scroll_button(int)
bool tap_to_click() const

When tap to click is enabled the system will interpret short finger touch down/up sequences as button clicks.

void tap_to_click(bool)
bool middle_mouse_button_emulation() const

Emulates a middle mouse button press when the left and right buttons on a touchpad are pressed.

void middle_mouse_button_emulation(bool)
bool disable_with_external_mouse() const

When disable-with-external-mouse is enabled the touchpad will stop to emit user input events when another pointing device is plugged in.

void disable_with_external_mouse(bool enabled)
bool disable_with_mouse() const
void disable_with_mouse(bool)
bool disable_while_typing() const

When disable-with-mouse is enabled the touchpad will stop to emit user input events when the user starts to use a keyboard and a short period after.

void disable_while_typing(bool)
bool operator==(MirTouchpadConfig const &rhs) const
bool operator!=(MirTouchpadConfig const &rhs) const