16 #ifndef SystemPointingDevice_h
17 #define SystemPointingDevice_h
19 #include <pointing/input/PointingDevice.h>
35 double forced_cpi = -1., forced_hz = -1.;
37 int vendorID = 0, productID = 0;
42 void *callback_context = NULL;
44 std::string vendor, product;
61 URI
getURI(
bool expanded=
false,
bool crossplatform=
false)
const;
double getResolution(double *defval=0) const
Resolution of the mouse in CPI (counts per inch).
Definition: SystemPointingDevice.cpp:67
The PointingDeviceManager class is a helper class which enumerates the list of existing pointing devi...
Definition: PointingDeviceManager.h:87
URI getURI(bool expanded=false, bool crossplatform=false) const
Constructs the URI according to the parameters of the device.
Definition: SystemPointingDevice.cpp:82
void setDebugLevel(int level)
Sets the level of information for debugging purposes (default = 0).
Definition: SystemPointingDevice.cpp:117
The SystemPointingDevice class is used to represent Pointing Devices connected to the computer...
Definition: SystemPointingDevice.h:28
int getProductID(void) const
Product identifier number.
Definition: SystemPointingDevice.cpp:57
std::string getVendor(void) const
Readable vendor name.
Definition: SystemPointingDevice.cpp:52
void(* PointingCallback)(void *context, TimeStamp::inttime timestamp, int dx, int dy, int buttons)
Definition: PointingDevice.h:74
The PointingDevice class is used to represent Pointing Devices connected to the computer or pseudo-de...
Definition: PointingDevice.h:36
double getUpdateFrequency(double *defval=0) const
Update frequency of the mouse in Hz.
Definition: SystemPointingDevice.cpp:73
int getVendorID(void) const
Vendor identifier number.
Definition: SystemPointingDevice.cpp:47
void setPointingCallback(PointingCallback callback, void *context=0)
Sets the callback function which is called when device events occur.
Definition: SystemPointingDevice.cpp:111
bool isActive(void) const
Indicates whether the current device is active.
Definition: SystemPointingDevice.cpp:42
std::string getProduct(void) const
Readable product name.
Definition: SystemPointingDevice.cpp:62