Searched refs:btns (Results 1 – 12 of 12) sorted by relevance
/openbmc/qemu/chardev/ |
H A D | msmouse.c | 63 bool btns[INPUT_BUTTON__MAX]; member 108 bytes[0] |= (mouse->btns[INPUT_BUTTON_LEFT] ? 0x20 : 0x00); in msmouse_queue_event() 109 bytes[0] |= (mouse->btns[INPUT_BUTTON_RIGHT] ? 0x10 : 0x00); in msmouse_queue_event() 110 if (mouse->btns[INPUT_BUTTON_MIDDLE] || in msmouse_queue_event() 112 bytes[3] |= (mouse->btns[INPUT_BUTTON_MIDDLE] ? 0x20 : 0x00); in msmouse_queue_event() 144 mouse->btns[btn->button] = btn->down; in msmouse_input_event() 233 memset(mouse->btns, false, sizeof(mouse->btns)); in msmouse_ioctl() 234 memset(mouse->btnc, false, sizeof(mouse->btns)); in msmouse_ioctl()
|
H A D | wctablet.c | 83 bool btns[INPUT_BUTTON__MAX]; member 141 if (tablet->btns[INPUT_BUTTON_LEFT]) { in wctablet_queue_event() 163 tablet->btns[btn->button] = btn->down; in wctablet_input_event()
|
/openbmc/linux/drivers/input/joystick/iforce/ |
H A D | iforce-packets.c | 133 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()
|
/openbmc/linux/drivers/hid/ |
H A D | hid-nintendo.c | 1274 u32 btns; in joycon_parse_report() local 1324 btns = hid_field_extract(ctlr->hdev, rep->button_status, 0, 24); in joycon_parse_report() 1344 input_report_key(dev, BTN_TL, btns & JC_BTN_L); in joycon_parse_report() 1345 input_report_key(dev, BTN_TL2, btns & JC_BTN_ZL); in joycon_parse_report() 1346 input_report_key(dev, BTN_SELECT, btns & JC_BTN_MINUS); in joycon_parse_report() 1347 input_report_key(dev, BTN_THUMBL, btns & JC_BTN_LSTICK); in joycon_parse_report() 1348 input_report_key(dev, BTN_Z, btns & JC_BTN_CAP); in joycon_parse_report() 1352 input_report_key(dev, BTN_TR, btns & JC_BTN_SL_L); in joycon_parse_report() 1353 input_report_key(dev, BTN_TR2, btns & JC_BTN_SR_L); in joycon_parse_report() 1357 btns & JC_BTN_DOWN); in joycon_parse_report() [all …]
|
/openbmc/u-boot/scripts/kconfig/ |
H A D | nconf.gui.c | 255 ITEM *btns[btn_num+1]; in btn_dialog() local 263 btns[i] = new_item(btn, ""); in btn_dialog() 267 btns[btn_num] = NULL; in btn_dialog() 294 menu = new_menu(btns); in btn_dialog() 352 free_item(btns[i]); in btn_dialog()
|
/openbmc/linux/scripts/kconfig/ |
H A D | nconf.gui.c | 205 ITEM *btns[btn_num+1]; in btn_dialog() local 213 btns[i] = new_item(btn, ""); in btn_dialog() 217 btns[btn_num] = NULL; in btn_dialog() 244 menu = new_menu(btns); in btn_dialog() 302 free_item(btns[i]); in btn_dialog()
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3326-odroid-go2-v11.dts | 129 btns {
|
H A D | rk3326-odroid-go3.dts | 156 btns {
|
H A D | rk3326-odroid-go.dtsi | 561 btns {
|
H A D | rk3566-anbernic-rgxx3.dtsi | 569 gpio-btns {
|
/openbmc/linux/drivers/misc/lis3lv02d/ |
H A D | lis3lv02d.c | 685 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()
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | cyttsp5.c | 516 unsigned int btns = ts->response_buf[HID_SYSINFO_BTN_OFFSET] & in cyttsp5_si_get_btn_data() local 519 si->num_btns = hweight8(btns); in cyttsp5_si_get_btn_data()
|