Libpointing
An open-source cross-platform library to get raw events from pointing devices and master transfer functions.
linuxPointingDevice.h
1 /* -*- mode: c++ -*-
2  *
3  * pointing/input/linux/linuxPointingDevice.h --
4  *
5  * Initial software
6  * Authors: Nicolas Roussel, Izzat Mukhanov
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 linuxPointingDevice_h
17 #define linuxPointingDevice_h
18 
19 #include <pointing/input/SystemPointingDevice.h>
20 
21 namespace pointing {
22 
24  {
25  friend class linuxPointingDeviceManager;
26  bool seize = false;
27  double hz = -1.;
28 
29  public:
30  linuxPointingDevice(URI device_uri);
31 
32  double getUpdateFrequency(double *defval=0) const override;
33  URI getURI(bool expanded, bool crossplatform) const override;
34  };
35 }
36 
37 #endif
URI getURI(bool expanded, bool crossplatform) const override
Constructs the URI according to the parameters of the device.
Definition: linuxPointingDevice.cpp:39
Definition: linuxPointingDevice.h:23
The linuxPointingDeviceManager class is the platform-specific subclass of the PointingDeviceManager c...
Definition: linuxPointingDeviceManager.h:31
Definition: DummyPointingDevice.cpp:23
The SystemPointingDevice class is used to represent Pointing Devices connected to the computer...
Definition: SystemPointingDevice.h:28
double getUpdateFrequency(double *defval=0) const override
Update frequency of the mouse in Hz.
Definition: linuxPointingDevice.cpp:28