Home
last modified time | relevance | path

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

/drivers/hid/
Dhid-nintendo.c434 u32 btns; in joycon_parse_report() local
437 btns = hid_field_extract(ctlr->hdev, rep->button_status, 0, 24); in joycon_parse_report()
457 input_report_key(dev, BTN_TL, btns & JC_BTN_L); in joycon_parse_report()
458 input_report_key(dev, BTN_TL2, btns & JC_BTN_ZL); in joycon_parse_report()
461 input_report_key(dev, BTN_TR, btns & JC_BTN_SL_L); in joycon_parse_report()
462 input_report_key(dev, BTN_TR2, btns & JC_BTN_SR_L); in joycon_parse_report()
464 input_report_key(dev, BTN_SELECT, btns & JC_BTN_MINUS); in joycon_parse_report()
465 input_report_key(dev, BTN_THUMBL, btns & JC_BTN_LSTICK); in joycon_parse_report()
466 input_report_key(dev, BTN_Z, btns & JC_BTN_CAP); in joycon_parse_report()
467 input_report_key(dev, BTN_DPAD_DOWN, btns & JC_BTN_DOWN); in joycon_parse_report()
[all …]
/drivers/input/joystick/iforce/
Diforce-packets.c133 u8 btns = data[6]; in iforce_report_hats_buttons() local
136 if (btns & BIT(3)) in iforce_report_hats_buttons()
138 else if (btns & BIT(1)) in iforce_report_hats_buttons()
145 if (btns & BIT(0)) in iforce_report_hats_buttons()
147 else if (btns & BIT(2)) in iforce_report_hats_buttons()
/drivers/misc/lis3lv02d/
Dlis3lv02d.c685 int btns[] = {BTN_X, BTN_Y, BTN_Z}; in lis3lv02d_joystick_enable() local
729 lis3->mapped_btns[0] = lis3lv02d_get_axis(abs(lis3->ac.x), btns); in lis3lv02d_joystick_enable()
730 lis3->mapped_btns[1] = lis3lv02d_get_axis(abs(lis3->ac.y), btns); in lis3lv02d_joystick_enable()
731 lis3->mapped_btns[2] = lis3lv02d_get_axis(abs(lis3->ac.z), btns); in lis3lv02d_joystick_enable()