Mir
Functions
mir_input_device.h File Reference
#include "mir_toolkit/client_types.h"
#include "mir_toolkit/mir_input_device_types.h"
Include dependency graph for mir_input_device.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

size_t mir_input_config_device_count (MirInputConfig const *config)
 Retrieve the number of available input devices. More...
 
MirInputDevice const * mir_input_config_get_device (MirInputConfig const *config, size_t index)
 Retrieve the input device at given index. More...
 
MirInputDevice const * mir_input_config_get_device_by_id (MirInputConfig const *config, MirInputDeviceId id)
 Retrieve the input device by id. More...
 
MirInputDevicemir_input_config_get_mutable_device (MirInputConfig *config, size_t index)
 Retrieve the input device at given index. More...
 
MirInputDevicemir_input_config_get_mutable_device_by_id (MirInputConfig *config, MirInputDeviceId id)
 Retrieve the input device by id. More...
 
MirInputDeviceCapabilities mir_input_device_get_capabilities (MirInputDevice const *device)
 Retrieve the capabilities of the input device at the given index. More...
 
MirInputDeviceId mir_input_device_get_id (MirInputDevice const *device)
 Retrieve the device id of the input device. More...
 
char const * mir_input_device_get_name (MirInputDevice const *device)
 Retrieve the name of the input device. More...
 
char const * mir_input_device_get_unique_id (MirInputDevice const *device)
 Retrieve the unique id of the input device. More...
 
MirKeyboardConfig const * mir_input_device_get_keyboard_config (MirInputDevice const *device)
 Retrieve a structure containing the keyboard related config options of the input device. More...
 
char const * mir_keyboard_config_get_keymap_model (MirKeyboardConfig const *conf)
 Retrieve the keyboard model of the keymap as a null terminated string. More...
 
char const * mir_keyboard_config_get_keymap_layout (MirKeyboardConfig const *conf)
 Retrieve the layout of the keymap as a null terminated string. More...
 
char const * mir_keyboard_config_get_keymap_variant (MirKeyboardConfig const *conf)
 Retrieve the layout of the keymap as a null terminated string. More...
 
char const * mir_keyboard_config_get_keymap_options (MirKeyboardConfig const *conf)
 Retrieve the options of the keymap as a null terminated string. More...
 
MirKeyboardConfigmir_input_device_get_mutable_keyboard_config (MirInputDevice *device)
 Retrieve a mutable structure containing the keyboard related config options of the input device. More...
 
void mir_keyboard_config_set_keymap_model (MirKeyboardConfig *conf, char const *model)
 Set the keyboard model of the keymap as a null terminated string. More...
 
void mir_keyboard_config_set_keymap_layout (MirKeyboardConfig *conf, char const *layout)
 Set the layout of the keymap as a null terminated string. More...
 
void mir_keyboard_config_set_keymap_options (MirKeyboardConfig *conf, char const *options)
 Set the options of the keymap as a null terminated string. More...
 
void mir_keyboard_config_set_keymap_variant (MirKeyboardConfig *conf, char const *variant)
 Set the variant of the keymap as a null terminated string. More...
 
MirPointerConfig const * mir_input_device_get_pointer_config (MirInputDevice const *device)
 Retrieve a structure containing the pointer related config options of the input device. More...
 
MirPointerAcceleration mir_pointer_config_get_acceleration (MirPointerConfig const *conf)
 Retrieve the cursor acceleration profile. More...
 
double mir_pointer_config_get_acceleration_bias (MirPointerConfig const *conf)
 Retrieve the cursor acceleration bias. More...
 
double mir_pointer_config_get_horizontal_scroll_scale (MirPointerConfig const *conf)
 Retrieve the horizontal scroll scale. More...
 
double mir_pointer_config_get_vertical_scroll_scale (MirPointerConfig const *conf)
 Retrieve the vertical scroll scale. More...
 
MirPointerHandedness mir_pointer_config_get_handedness (MirPointerConfig const *conf)
 Retrieve whether the pointer device is configured for right or left handed use. More...
 
MirPointerConfigmir_input_device_get_mutable_pointer_config (MirInputDevice *device)
 Retrieve a structure containing the pointer related config options of the input device that can be manipulated. More...
 
void mir_pointer_config_set_acceleration (MirPointerConfig *conf, MirPointerAcceleration acceleration)
 Set the acceleration mode of the pointer device. More...
 
void mir_pointer_config_set_acceleration_bias (MirPointerConfig *conf, double acceleration_bias)
 Set the acceleration bias of the pointer device. More...
 
void mir_pointer_config_set_horizontal_scroll_scale (MirPointerConfig *conf, double horizontal_scroll_scale)
 Set the horizontal scroll scale. More...
 
void mir_pointer_config_set_vertical_scroll_scale (MirPointerConfig *conf, double vertical_scroll_scale)
 Set the vertical scroll scale. More...
 
void mir_pointer_config_set_handedness (MirPointerConfig *conf, MirPointerHandedness handedness)
 Configure left and right hand use of the pointer device. More...
 
MirTouchpadConfig const * mir_input_device_get_touchpad_config (MirInputDevice const *device)
 Retrieve a structure containing the touchpad related config options of the input device. More...
 
MirTouchpadClickModes mir_touchpad_config_get_click_modes (MirTouchpadConfig const *conf)
 Retrieve the click modes of the touchpad. More...
 
MirTouchpadScrollModes mir_touchpad_config_get_scroll_modes (MirTouchpadConfig const *conf)
 Retrieve the scroll modes of the touchpad. More...
 
int mir_touchpad_config_get_button_down_scroll_button (MirTouchpadConfig const *conf)
 Retrieve the configured button down for button down scroll mode. More...
 
bool mir_touchpad_config_get_tap_to_click (MirTouchpadConfig const *conf)
 Retrieve whether a tap gesture generates pointer button events. More...
 
bool mir_touchpad_config_get_middle_mouse_button_emulation (MirTouchpadConfig const *conf)
 Retrieve whether middle mouse button should be emulated. More...
 
bool mir_touchpad_config_get_disable_with_mouse (MirTouchpadConfig const *conf)
 Retrieve whether the touchpad should be disabled when an external pointer device like a mouse is connected. More...
 
bool mir_touchpad_config_get_disable_while_typing (MirTouchpadConfig const *conf)
 Retrieve whether the touchpad events should be blocked while the user types. More...
 
MirTouchpadConfigmir_input_device_get_mutable_touchpad_config (MirInputDevice *device)
 Retrieve a structure containing the touchpad related config options of the input device that can be manipulated. More...
 
void mir_touchpad_config_set_click_modes (MirTouchpadConfig *conf, MirTouchpadClickModes modes)
 Configure the enable click modes for the touchpad. More...
 
void mir_touchpad_config_set_scroll_modes (MirTouchpadConfig *conf, MirTouchpadScrollModes modes)
 Configure the enabled scroll modes for the touchpad. More...
 
void mir_touchpad_config_set_button_down_scroll_button (MirTouchpadConfig *conf, int button)
 Configure the button for button down scroll mode. More...
 
void mir_touchpad_config_set_tap_to_click (MirTouchpadConfig *conf, bool tap_to_click)
 Configure whether tap to click should be enabled. More...
 
void mir_touchpad_config_set_middle_mouse_button_emulation (MirTouchpadConfig *conf, bool middle_emulation)
 Configure whether middle mouse button emulation should be enabled. More...
 
void mir_touchpad_config_set_disable_with_mouse (MirTouchpadConfig *conf, bool active)
 Configure whether the touchpad should be turned off while a mouse is attached. More...
 
void mir_touchpad_config_set_disable_while_typing (MirTouchpadConfig *conf, bool active)
 Configure whether the touchpad should be turned off while typing. More...
 
MirTouchscreenConfig const * mir_input_device_get_touchscreen_config (MirInputDevice const *device)
 Retrieve a structure containing the touchscreen related config options of the input device. More...
 
uint32_t mir_touchscreen_config_get_output_id (MirTouchscreenConfig const *device)
 Get the output ID of the display the coordinates of this device will be mapped to. More...
 
enum MirTouchscreenMappingMode mir_touchscreen_config_get_mapping_mode (MirTouchscreenConfig const *device)
 Get the mapping mode used for the touchscreen. More...
 
MirTouchscreenConfigmir_input_device_get_mutable_touchscreen_config (MirInputDevice *device)
 Retrieve a mutable structure containing the touchscreen related options of the input device to change the device configuration. More...
 
void mir_touchscreen_config_set_output_id (MirTouchscreenConfig *config, uint32_t output)
 Set the output ID of the display the coordinates of this device will be mapped to. More...
 
void mir_touchscreen_config_set_mapping_mode (MirTouchscreenConfig *config, enum MirTouchscreenMappingMode mode)
 Set the mapping mode used for the touchscreen. More...
 

Copyright © 2012-2022 Canonical Ltd.
Generated on Wed Dec 28 21:01:08 UTC 2022
This documentation is licensed under the GPL version 2 or 3.