Struct MirPointerConfig

Struct Documentation

struct MirPointerConfig

Public Functions

MirPointerConfig()
~MirPointerConfig()
MirPointerConfig(MirPointerConfig const &cp)
MirPointerConfig(MirPointerConfig &&cp)
MirPointerConfig &operator=(MirPointerConfig const &cp)
MirPointerConfig(MirPointerHandedness handedness, MirPointerAcceleration acceleration, double acceleration_bias, double horizontal_scroll_scale, double vertical_scroll_scale)
MirPointerHandedness handedness() const

Configure which button shall be used as primary button. That way the input device is configured to be either right or left handed.

void handedness(MirPointerHandedness)
MirPointerAcceleration acceleration() const

Configure cursor acceleration profile

void acceleration(MirPointerAcceleration)
double cursor_acceleration_bias() const

Configures the intensity of the cursor acceleration. Values within the range of [-1, 1] are allowed.

  • 0: default acceleration

  • [-1, 0): reduced acceleration

  • (0, 1]: increased acceleration

void cursor_acceleration_bias(double)
double horizontal_scroll_scale() const

Configures a signed scale of the horizontal scrolling. Use negative values to configure ‘natural scrolling’

void horizontal_scroll_scale(double)
double vertical_scroll_scale() const

Configures a signed scale of the vertical scrolling. Use negative values to configure ‘natural scrolling’

void vertical_scroll_scale(double)
bool operator==(MirPointerConfig const &rhs) const
bool operator!=(MirPointerConfig const &rhs) const