Lines Matching refs:rel_y
1314 signed char rel_x = 0x00, rel_y = 0x00; in imon_mouse_event() local
1325 rel_y = buf[3]; in imon_mouse_event()
1335 rel_y = (buf[2] & 0x08) | (buf[2] & 0x10) >> 2 | in imon_mouse_event()
1338 rel_y |= ~0x0f; in imon_mouse_event()
1339 rel_y = rel_y + rel_y / 2; in imon_mouse_event()
1359 } else if (rel_x || rel_y) { in imon_mouse_event()
1361 input_report_rel(ictx->idev, REL_Y, rel_y); in imon_mouse_event()
1390 signed char rel_x = 0x00, rel_y = 0x00; in imon_pad_to_keys() local
1410 rel_y = buf[3]; in imon_pad_to_keys()
1413 if ((buf[1] == 0) && ((rel_x != 0) || (rel_y != 0))) { in imon_pad_to_keys()
1414 dir = stabilize((int)rel_x, (int)rel_y, in imon_pad_to_keys()
1433 if (abs(rel_y) > abs(rel_x)) { in imon_pad_to_keys()
1434 buf[2] = (rel_y > 0) ? 0x7F : 0x80; in imon_pad_to_keys()
1436 if (rel_y > 0) in imon_pad_to_keys()
1471 rel_y = (buf[2] & 0x08) | (buf[2] & 0x10) >> 2 | in imon_pad_to_keys()
1474 rel_y |= ~0x10+1; in imon_pad_to_keys()
1480 dir = stabilize((int)rel_x, (int)rel_y, in imon_pad_to_keys()
1496 if (abs(rel_y) > abs(rel_x)) { in imon_pad_to_keys()
1497 buf[2] = (rel_y > 0) ? 0x7F : 0x80; in imon_pad_to_keys()
1499 if (rel_y > 0) in imon_pad_to_keys()