giiQueryValInfo : Get data about valuators
#include <ggi/gii.h> int giiQueryValInfo(gii_input_t inp, uint32 origin, uint32 valnumber, gii_cmddata_getvalinfo *info);
Though when using GII inputs the exact type of device is fully transparent to the program, information about the device that is actually attached to a given gii input and origin id can be queried, e.g. for configuration interfaces.
For giiQueryValInfo is used on devices, where giiQueryDeviceInfo has indicated that the device has one or more valuator axes and you want to gather additional info about the physical equivalent of each axis.The parameters :p:`inp` and :p:`origin` select the input to query and :p:`valnumber` selects the specific valuator (an input can have multiple valuators).
The queried data is put into :p:`info`. See :man:`gii_cmddata_getvalinfo(3)` for the description of the structure.
Returns 0 on success (:p:`info` is valid, then) or -1 otherwise.