Libpointing
An open-source cross-platform library to get raw events from pointing devices and master transfer functions.
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Typedefs
Enumerator
Pages
pointing
transferfunctions
linux
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
34
class
xorgSystemPointerAcceleration
{
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
60
~
xorgSystemPointerAcceleration
() ;
61
62
} ;
63
64
}
65
66
#endif
pointing::xorgSystemPointerAcceleration
The xorgSystemPointerAcceleration class is used to set or read the cursor parameters of the current s...
Definition:
xorgSystemPointerAcceleration.h:34
pointing::xorgSystemPointerAcceleration::set
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
Generated on Mon Feb 25 2019 11:03:16 for Libpointing by
1.8.6