Searched refs:btns (Results 1 – 2 of 2) sorted by relevance
/drivers/input/joystick/iforce/ |
D | iforce-packets.c | 205 int btns = data[6]; in iforce_process_packet() local 207 if (btns & 8) input_report_abs(dev, ABS_HAT1X, -1); in iforce_process_packet() 208 else if (btns & 2) input_report_abs(dev, ABS_HAT1X, 1); in iforce_process_packet() 212 if (btns & 1) input_report_abs(dev, ABS_HAT1Y, -1); in iforce_process_packet() 213 else if (btns & 4) input_report_abs(dev, ABS_HAT1Y, 1); in iforce_process_packet()
|
/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 657 int btns[] = {BTN_X, BTN_Y, BTN_Z}; in lis3lv02d_joystick_enable() local 697 lis3->mapped_btns[0] = lis3lv02d_get_axis(abs(lis3->ac.x), btns); in lis3lv02d_joystick_enable() 698 lis3->mapped_btns[1] = lis3lv02d_get_axis(abs(lis3->ac.y), btns); in lis3lv02d_joystick_enable() 699 lis3->mapped_btns[2] = lis3lv02d_get_axis(abs(lis3->ac.z), btns); in lis3lv02d_joystick_enable()
|