Class MouseKeysConfig¶
Defined in File mousekeys_config.h
Class Documentation¶
-
class MouseKeysConfig¶
Public Functions
-
explicit MouseKeysConfig(bool enabled_by_default)¶
Note
--enable-mouse-keys
has higher precedence than [enabled_by_default]
-
void operator()(mir::Server &server) const¶
-
void enabled(bool enabled) const¶
Enables or disables mousekeys depending on the passed parameter.
-
void set_keymap(mir::input::MouseKeysKeymap const &new_keymap) const¶
Changes the keymap for the various mousekeys actions defined in [MouseKeysKeymap::Action].
Note
If a certain action not mapped to any key, it will be disabled.
-
void set_acceleration_factors(double constant, double linear, double quadratic) const¶
Sets the factors used to accelerate the pointer during motion. Follows the equation: constant + linear * time + quadratic * time^2. Where time is the time since the cursor has started moving.
-
void set_max_speed(double x_axis, double y_axis) const¶
Sets the maximum speed in pixels/s for the pointer on the x and y axes respectively.
-
explicit MouseKeysConfig(bool enabled_by_default)¶