Libpointing
An open-source cross-platform library to get raw events from pointing devices and master transfer functions.
 All Classes Functions Variables Typedefs Enumerator Pages
winPointingDevice.h
1 /* -*- mode: c++ -*-
2  *
3  * pointing/input/windows/winPointingDevice.h --
4  *
5  * Initial software
6  * Authors: Damien Marchal, Izzat Mukhanov
7  * Copyright © INRIA
8  *
9  */
10 
11 #ifndef winPointingDevice_h
12 #define winPointingDevice_h
13 
14 #include <pointing/input/SystemPointingDevice.h>
15 
16 namespace pointing
17 {
19  {
20  friend class winPointingDeviceManager;
21 
22  int buttons = 0;
23 
24  // For absolute coordinates
25  int lastX = -1, lastY = -1;
26 
27  public:
28  winPointingDevice(URI uri);
29 
30  void getAbsolutePosition(double *x, double *y) const override;
31  } ;
32 }
33 
34 #endif
The SystemPointingDevice class is used to represent Pointing Devices connected to the computer...
Definition: SystemPointingDevice.h:28
Definition: winPointingDeviceManager.h:26
Definition: winPointingDevice.h:18
void getAbsolutePosition(double *x, double *y) const override
getAbsolutePosition Returns absolute position of the device if available otherwise -1...
Definition: winPointingDevice.cpp:29