Home
last modified time | relevance | path

Searched refs:btns (Results 1 – 2 of 2) sorted by relevance

/drivers/input/joystick/iforce/
Diforce-packets.c205 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/
Dlis3lv02d.c657 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()