Libpointing
An open-source cross-platform library to get raw events from pointing devices and master transfer functions.
xorgSystemPointerAcceleration.h
1 /* -*- mode: c++ -*-
2  *
3  * pointing/transferfunctions/linux/xorgSystemPointerAcceleration.h --
4  *
5  * Initial software
6  * Authors: Nicolas Roussel
7  * Copyright © Inria
8  *
9  * http://libpointing.org/
10  *
11  * This software may be used and distributed according to the terms of
12  * the GNU General Public License version 2 or any later version.
13  *
14  */
15 
16 #ifndef xorgSystemPointerAcceleration_h
17 #define xorgSystemPointerAcceleration_h
18 
19 #include <X11/Xlib.h>
20 
21 namespace pointing {
22 
35 
36  private:
37 
38  Display *dpy ;
39 
40  public:
41 
42  xorgSystemPointerAcceleration(const char *display=0) ;
43 
50  void get(int *accel_numerator, int *accel_denominator, int *threshold) ;
51 
58  void set(int accel_numerator, int accel_denominator, int threshold) ;
59 
61 
62  } ;
63 
64 }
65 
66 #endif
Definition: DummyPointingDevice.cpp:23
void set(int accel_numerator, int accel_denominator, int threshold)
Sets the acceleration value (expressed as a fraction) and the threshold form the system.
Definition: xorgSystemPointerAcceleration.cpp:40
The xorgSystemPointerAcceleration class is used to set or read the cursor parameters of the current s...
Definition: xorgSystemPointerAcceleration.h:34