Lines Matching refs:wheel

70 			       "invalid wheel event %s in state %s\n",
72 wheel_state_to_str(dispatch->wheel.state));
78 libinput_timer_set(&dispatch->wheel.scroll_timer,
85 libinput_timer_cancel(&dispatch->wheel.scroll_timer);
95 dispatch->wheel.state = WHEEL_STATE_ACCUMULATING_SCROLL;
113 dispatch->wheel.state = WHEEL_STATE_SCROLLING;
120 dispatch->wheel.state = WHEEL_STATE_NONE;
139 dispatch->wheel.state = WHEEL_STATE_NONE;
143 dispatch->wheel.state = WHEEL_STATE_NONE;
156 enum wheel_state oldstate = dispatch->wheel.state;
172 if (oldstate != dispatch->wheel.state) {
174 "wheel state %s → %s → %s\n",
177 wheel_state_to_str(dispatch->wheel.state));
190 /* This mouse has a trackstick instead of a mouse wheel and sends
195 .x = dispatch->wheel.lo_res.x,
196 .y = dispatch->wheel.lo_res.y * -1,
207 dispatch->wheel.hi_res.x = 0;
208 dispatch->wheel.hi_res.y = 0;
209 dispatch->wheel.lo_res.x = 0;
210 dispatch->wheel.lo_res.y = 0;
215 if (dispatch->wheel.hi_res.y != 0) {
216 int value = dispatch->wheel.hi_res.y;
226 dispatch->wheel.hi_res.y = 0;
229 if (dispatch->wheel.lo_res.y != 0) {
230 int value = dispatch->wheel.lo_res.y;
240 dispatch->wheel.lo_res.y = 0;
243 if (dispatch->wheel.hi_res.x != 0) {
244 int value = dispatch->wheel.hi_res.x;
254 dispatch->wheel.hi_res.x = 0;
257 if (dispatch->wheel.lo_res.x != 0) {
258 int value = dispatch->wheel.lo_res.x;
268 dispatch->wheel.lo_res.x = 0;
285 if (abs(dispatch->wheel.hi_res.x) >= ACC_V120_THRESHOLD ||
286 abs(dispatch->wheel.hi_res.y) >= ACC_V120_THRESHOLD) {
318 if (new_dir != WHEEL_DIR_UNKNOW && new_dir != dispatch->wheel.dir) {
319 dispatch->wheel.dir = new_dir;
349 dispatch->wheel.lo_res.y += e->value;
350 if (dispatch->wheel.emulate_hi_res_wheel)
351 dispatch->wheel.hi_res.y += e->value * 120;
357 dispatch->wheel.lo_res.x += e->value;
358 if (dispatch->wheel.emulate_hi_res_wheel)
359 dispatch->wheel.hi_res.x += e->value * 120;
365 dispatch->wheel.hi_res.y += e->value;
366 dispatch->wheel.hi_res_event_received = true;
373 dispatch->wheel.hi_res.x += e->value;
374 dispatch->wheel.hi_res_event_received = true;
390 if (!dispatch->wheel.emulate_hi_res_wheel &&
391 !dispatch->wheel.hi_res_event_received &&
392 (dispatch->wheel.lo_res.x != 0 || dispatch->wheel.lo_res.y != 0)) {
397 dispatch->wheel.emulate_hi_res_wheel = true;
398 dispatch->wheel.hi_res.x = dispatch->wheel.lo_res.x * 120;
399 dispatch->wheel.hi_res.y = dispatch->wheel.lo_res.y * 120;
402 switch (dispatch->wheel.state) {
431 dispatch->wheel.state = WHEEL_STATE_NONE;
432 dispatch->wheel.dir = WHEEL_DIR_UNKNOW;
435 wheel scroll events */
448 dispatch->wheel.emulate_hi_res_wheel = true;
452 "%s wheel scroll",
454 libinput_timer_init(&dispatch->wheel.scroll_timer,