Libpointing
An open-source cross-platform library to get raw events from pointing devices and master transfer functions.
|
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... | |
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.
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.
accel_numerator | Pointer to the numerator part of the acceleration |
accel_denominator | Pointer to the denominator part of the acceleration |
threshold | The 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.
accel_numerator | Pointer to the numerator part of the acceleration |
accel_denominator | Pointer to the denominator part of the acceleration |
threshold | The threshold at which low gain is switched to the high. |