Lines Matching refs:rel_x
1293 signed char rel_x = 0x00, rel_y = 0x00; in imon_mouse_event() local
1303 rel_x = buf[2]; in imon_mouse_event()
1309 rel_x = (buf[1] & 0x08) | (buf[1] & 0x10) >> 2 | in imon_mouse_event()
1312 rel_x |= ~0x0f; in imon_mouse_event()
1313 rel_x = rel_x + rel_x / 2; in imon_mouse_event()
1338 } else if (rel_x || rel_y) { in imon_mouse_event()
1339 input_report_rel(ictx->idev, REL_X, rel_x); in imon_mouse_event()
1369 signed char rel_x = 0x00, rel_y = 0x00; in imon_pad_to_keys() local
1388 rel_x = buf[2]; in imon_pad_to_keys()
1392 if ((buf[1] == 0) && ((rel_x != 0) || (rel_y != 0))) { in imon_pad_to_keys()
1393 dir = stabilize((int)rel_x, (int)rel_y, in imon_pad_to_keys()
1412 if (abs(rel_y) > abs(rel_x)) { in imon_pad_to_keys()
1421 buf[3] = (rel_x > 0) ? 0x7F : 0x80; in imon_pad_to_keys()
1422 if (rel_x > 0) in imon_pad_to_keys()
1445 rel_x = (buf[1] & 0x08) | (buf[1] & 0x10) >> 2 | in imon_pad_to_keys()
1448 rel_x |= ~0x10+1; in imon_pad_to_keys()
1459 dir = stabilize((int)rel_x, (int)rel_y, in imon_pad_to_keys()
1475 if (abs(rel_y) > abs(rel_x)) { in imon_pad_to_keys()
1484 buf[3] = (rel_x > 0) ? 0x7F : 0x80; in imon_pad_to_keys()
1485 if (rel_x > 0) in imon_pad_to_keys()