Lines Matching refs:absinfo
148 normalize_ring(const struct input_absinfo *absinfo) in normalize_ring() argument
154 double range = absinfo->maximum - absinfo->minimum + 1; in normalize_ring()
155 double value = (absinfo->value - absinfo->minimum) / range - 0.25; in normalize_ring()
164 normalize_strip(const struct input_absinfo *absinfo) in normalize_strip() argument
170 max = log2(absinfo->maximum); in normalize_strip()
172 double value = (log2(absinfo->value) - min) / range; in normalize_strip()
182 const struct input_absinfo *absinfo; in pad_handle_ring() local
185 absinfo = libevdev_get_abs_info(device->evdev, code); in pad_handle_ring()
186 assert(absinfo); in pad_handle_ring()
188 degrees = normalize_ring(absinfo) * 360; in pad_handle_ring()
201 const struct input_absinfo *absinfo; in pad_handle_strip() local
204 absinfo = libevdev_get_abs_info(device->evdev, code); in pad_handle_strip()
205 assert(absinfo); in pad_handle_strip()
207 if (absinfo->value == 0) in pad_handle_strip()
210 pos = normalize_strip(absinfo); in pad_handle_strip()