Mir
Public Member Functions | Public Attributes | List of all members
mir::input::TouchpadConfiguration Struct Reference

#include <touchpad_configuration.h>

Public Member Functions

 TouchpadConfiguration ()
 
 TouchpadConfiguration (MirTouchpadClickModes click_mode, MirTouchpadScrollModes scroll_mode, int button_down_scroll_button, bool tap_to_click, bool disable_while_typing, bool disable_with_mouse, bool middle_mouse_button_emulation)
 

Public Attributes

MirTouchpadClickModes click_mode {mir_touchpad_click_mode_finger_count}
 
MirTouchpadScrollModes scroll_mode {mir_touchpad_scroll_mode_two_finger_scroll}
 
int button_down_scroll_button {0}
 
bool tap_to_click {true}
 
bool middle_mouse_button_emulation {true}
 
bool disable_with_mouse {false}
 
bool disable_while_typing {false}
 

Detailed Description

Examples:
server_example_input_device_config.cpp.

Constructor & Destructor Documentation

mir::input::TouchpadConfiguration::TouchpadConfiguration ( )
inline
mir::input::TouchpadConfiguration::TouchpadConfiguration ( MirTouchpadClickModes  click_mode,
MirTouchpadScrollModes  scroll_mode,
int  button_down_scroll_button,
bool  tap_to_click,
bool  disable_while_typing,
bool  disable_with_mouse,
bool  middle_mouse_button_emulation 
)
inline

Member Data Documentation

int mir::input::TouchpadConfiguration::button_down_scroll_button {0}

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

MirTouchpadClickModes mir::input::TouchpadConfiguration::click_mode {mir_touchpad_click_mode_finger_count}

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

bool mir::input::TouchpadConfiguration::disable_while_typing {false}

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.

Examples:
server_example_input_device_config.cpp.
bool mir::input::TouchpadConfiguration::disable_with_mouse {false}

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

bool mir::input::TouchpadConfiguration::middle_mouse_button_emulation {true}

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

MirTouchpadScrollModes mir::input::TouchpadConfiguration::scroll_mode {mir_touchpad_scroll_mode_two_finger_scroll}

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

bool mir::input::TouchpadConfiguration::tap_to_click {true}

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


The documentation for this struct was generated from the following file:

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016