-
Notifications
You must be signed in to change notification settings - Fork 14
FAQ
Frequently asked questions
Libpointing is a cross-platform library, the main purpose of which is to work with pointing transfer functions.
Simply put, it is the relationship between speed of a mouse and the display cursor.
In order to use a transfer function, you need to create PointingDevice
, DisplayDevice
and relate them calling TransferFunction::create(URI, input, output)
. The best place to apply a transfer function is inside the Pointing callback function (when there is a message from the input device). Thus, call applyi
or applyd
inside the pointing callback function.
Those are the main functions used to apply a transfer function, where the input parameters are relative displacements in mouse counts and output parameters are corresponding displacements in display pixels. applyi
outputs pixels in integers, whereas applyd
in floating coordinates.
- To have precise results. In many cases remainders of computed transfer functions ignored. Taking them into account may increase the precision in pointing tasks.
- To have subpixel interaction.
Most likely it is because of any:
. If you have more then one pointing device, libpointing uses the first available, try moving other pointing devices or put a concrete device URI instead of any:
. The list of available devices are output if debugLevel=1
is in the URI. If you specified the correct URI and you do not receive any input, please open new issue.
The URI of a device is unique only with regard to other devices connected to the same machine at that moment. That means, if you plug the same device into another USB port or another machine or if you use it under a different OS, it may change. For pointing devices, see the next question.
Yes. You can use URI such as any:?vendor=0xXXXX&product=0xXXXX
to specify the product or/and vendor identifiers of the device. This way, you can work with the same device without changing URIs.
You can see them if you put flag debugLevel=1
in corresponfing URIs. If you want to obtain them in your code, you can use PointingDeviceManager
or DisplayDeviceManager
.
Copyright © 2016, INRIA Lille, Mjolnir.