Lines Matching refs:absinfo
149 normalize_ring(const struct input_absinfo *absinfo)
155 double range = absinfo_range(absinfo);
156 double value = (absinfo->value - absinfo->minimum) / range - 0.25;
165 normalize_strip(const struct input_absinfo *absinfo)
171 max = log2(absinfo->maximum);
173 double value = (log2(absinfo->value) - min) / range;
183 const struct input_absinfo *absinfo;
186 absinfo = libevdev_get_abs_info(device->evdev, code);
187 assert(absinfo);
189 degrees = normalize_ring(absinfo) * 360;
202 const struct input_absinfo *absinfo;
205 absinfo = libevdev_get_abs_info(device->evdev, code);
206 assert(absinfo);
208 if (absinfo->value == 0)
211 pos = normalize_strip(absinfo);