Libpointing
An open-source cross-platform library to get raw events from pointing devices and master transfer functions.
Public Member Functions | List of all members
pointing::xorgSystemPointerAcceleration Class Reference

The xorgSystemPointerAcceleration class is used to set or read the cursor parameters of the current system. More...

#include <xorgSystemPointerAcceleration.h>

Public Member Functions

 xorgSystemPointerAcceleration (const char *display=0)
 
void get (int *accel_numerator, int *accel_denominator, int *threshold)
 Reads the acceleration value (expressed as a fraction) and the threshold form the system. More...
 
void set (int accel_numerator, int accel_denominator, int threshold)
 Sets the acceleration value (expressed as a fraction) and the threshold form the system. More...
 

Detailed Description

The xorgSystemPointerAcceleration class is used to set or read the cursor parameters of the current system.

There are three main values which can be set or read. Acceleration, given as a fraction with numerator and denominator parts, represents the value for high CD gain, whereas the low gain is taken as 1, by default.

Threshold, which represents minimum velocity at which the low gain is switched to the high gain.

Member Function Documentation

void pointing::xorgSystemPointerAcceleration::get ( int *  accel_numerator,
int *  accel_denominator,
int *  threshold 
)

Reads the acceleration value (expressed as a fraction) and the threshold form the system.

Parameters
accel_numeratorPointer to the numerator part of the acceleration
accel_denominatorPointer to the denominator part of the acceleration
thresholdThe threshold at which low gain is switched to the high.
void pointing::xorgSystemPointerAcceleration::set ( int  accel_numerator,
int  accel_denominator,
int  threshold 
)

Sets the acceleration value (expressed as a fraction) and the threshold form the system.

Parameters
accel_numeratorPointer to the numerator part of the acceleration
accel_denominatorPointer to the denominator part of the acceleration
thresholdThe threshold at which low gain is switched to the high.

The documentation for this class was generated from the following files: