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