/linux-3.4.99/drivers/input/tablet/ |
D | wacom_wac.c | 38 input_report_key(input, wacom->tool[0], 1); in wacom_penpartner_irq() 43 input_report_key(input, BTN_TOUCH, ((signed char)data[6] > -127)); in wacom_penpartner_irq() 44 input_report_key(input, BTN_STYLUS, (data[5] & 0x40)); in wacom_penpartner_irq() 46 input_report_key(input, wacom->tool[0], 0); in wacom_penpartner_irq() 49 input_report_key(input, BTN_TOUCH, 0); in wacom_penpartner_irq() 54 input_report_key(input, BTN_TOOL_PEN, 1); in wacom_penpartner_irq() 59 input_report_key(input, BTN_TOUCH, ((signed char)data[6] > -80) && !(data[5] & 0x20)); in wacom_penpartner_irq() 60 input_report_key(input, BTN_STYLUS, (data[5] & 0x40)); in wacom_penpartner_irq() 109 input_report_key(input, wacom->tool[1], 0); in wacom_pl_irq() 120 input_report_key(input, wacom->tool[1], prox); /* report in proximity for tool */ in wacom_pl_irq() [all …]
|
D | hanwang.c | 137 input_report_key(input_dev, hanwang->current_tool, 0); in hanwang_parse_packet() 146 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet() 152 input_report_key(input_dev, BTN_TOOL_RUBBER, 1); in hanwang_parse_packet() 190 input_report_key(input_dev, BTN_STYLUS, data[1] & 0x02); in hanwang_parse_packet() 191 input_report_key(input_dev, BTN_STYLUS2, data[1] & 0x04); in hanwang_parse_packet() 205 input_report_key(input_dev, BTN_TOOL_FINGER, data[1] || in hanwang_parse_packet() 208 input_report_key(input_dev, BTN_0, data[2]); in hanwang_parse_packet() 210 input_report_key(input_dev, in hanwang_parse_packet() 215 input_report_key(input_dev, BTN_TOOL_FINGER, data[1] || in hanwang_parse_packet() 222 input_report_key(input_dev, BTN_0, data[5] & 0x01); in hanwang_parse_packet() [all …]
|
D | aiptek.c | 495 input_report_key(inputdev, BTN_LEFT, left); in aiptek_irq() 496 input_report_key(inputdev, BTN_MIDDLE, middle); in aiptek_irq() 497 input_report_key(inputdev, BTN_RIGHT, right); in aiptek_irq() 513 input_report_key(inputdev, in aiptek_irq() 555 input_report_key(inputdev, in aiptek_irq() 557 input_report_key(inputdev, in aiptek_irq() 569 input_report_key(inputdev, BTN_TOUCH, tip); in aiptek_irq() 570 input_report_key(inputdev, BTN_STYLUS, bs); in aiptek_irq() 571 input_report_key(inputdev, BTN_STYLUS2, pck); in aiptek_irq() 598 input_report_key(inputdev, in aiptek_irq() [all …]
|
/linux-3.4.99/drivers/input/joystick/ |
D | spaceball.c | 102 input_report_key(dev, BTN_1, (data[2] & 0x01) || (data[2] & 0x20)); in spaceball_process_packet() 103 input_report_key(dev, BTN_2, data[2] & 0x02); in spaceball_process_packet() 104 input_report_key(dev, BTN_3, data[2] & 0x04); in spaceball_process_packet() 105 input_report_key(dev, BTN_4, data[2] & 0x08); in spaceball_process_packet() 106 input_report_key(dev, BTN_5, data[1] & 0x01); in spaceball_process_packet() 107 input_report_key(dev, BTN_6, data[1] & 0x02); in spaceball_process_packet() 108 input_report_key(dev, BTN_7, data[1] & 0x04); in spaceball_process_packet() 109 input_report_key(dev, BTN_8, data[1] & 0x10); in spaceball_process_packet() 114 input_report_key(dev, BTN_1, data[2] & 0x01); in spaceball_process_packet() 115 input_report_key(dev, BTN_2, data[2] & 0x02); in spaceball_process_packet() [all …]
|
D | stinger.c | 72 input_report_key(dev, BTN_A, ((data[0] & 0x20) >> 5)); in stinger_process_packet() 73 input_report_key(dev, BTN_B, ((data[0] & 0x10) >> 4)); in stinger_process_packet() 74 input_report_key(dev, BTN_C, ((data[0] & 0x08) >> 3)); in stinger_process_packet() 75 input_report_key(dev, BTN_X, ((data[0] & 0x04) >> 2)); in stinger_process_packet() 76 input_report_key(dev, BTN_Y, ((data[3] & 0x20) >> 5)); in stinger_process_packet() 77 input_report_key(dev, BTN_Z, ((data[3] & 0x10) >> 4)); in stinger_process_packet() 78 input_report_key(dev, BTN_TL, ((data[3] & 0x08) >> 3)); in stinger_process_packet() 79 input_report_key(dev, BTN_TR, ((data[3] & 0x04) >> 2)); in stinger_process_packet() 80 input_report_key(dev, BTN_SELECT, ((data[3] & 0x02) >> 1)); in stinger_process_packet() 81 input_report_key(dev, BTN_START, (data[3] & 0x01)); in stinger_process_packet()
|
D | db9.c | 294 input_report_key(dev, db9_cd32_btn[i], ~data[j + db9_saturn_byte[i]] & db9_saturn_mask[i]); in db9_saturn_report() 300 input_report_key(dev, db9_cd32_btn[i], ~data[j + db9_saturn_byte[i]] & db9_saturn_mask[i]); in db9_saturn_report() 313 input_report_key(dev, BTN_A, data[j + 3] & 0x80); in db9_saturn_report() 317 input_report_key(dev, BTN_START, data[j + 1] & 0x08); in db9_saturn_report() 318 input_report_key(dev, BTN_A, data[j + 1] & 0x04); in db9_saturn_report() 319 input_report_key(dev, BTN_C, data[j + 1] & 0x02); in db9_saturn_report() 320 input_report_key(dev, BTN_B, data[j + 1] & 0x01); in db9_saturn_report() 329 input_report_key(dev, db9_cd32_btn[i], 0); in db9_saturn_report() 381 input_report_key(dev2, BTN_TRIGGER, ~data & DB9_FIRE1); in db9_timer() 389 input_report_key(dev, BTN_TRIGGER, data & DB9_FIRE1); in db9_timer() [all …]
|
D | xpad.c | 316 input_report_key(dev, BTN_TL2, data[10]); in xpad_process_packet() 317 input_report_key(dev, BTN_TR2, data[11]); in xpad_process_packet() 326 input_report_key(dev, BTN_TRIGGER_HAPPY1, data[2] & 0x04); in xpad_process_packet() 327 input_report_key(dev, BTN_TRIGGER_HAPPY2, data[2] & 0x08); in xpad_process_packet() 328 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & 0x01); in xpad_process_packet() 329 input_report_key(dev, BTN_TRIGGER_HAPPY4, data[2] & 0x02); in xpad_process_packet() 338 input_report_key(dev, BTN_START, data[2] & 0x10); in xpad_process_packet() 339 input_report_key(dev, BTN_SELECT, data[2] & 0x20); in xpad_process_packet() 340 input_report_key(dev, BTN_THUMBL, data[2] & 0x40); in xpad_process_packet() 341 input_report_key(dev, BTN_THUMBR, data[2] & 0x80); in xpad_process_packet() [all …]
|
D | maplecontrol.c | 45 input_report_key(dev, BTN_C, buttons & 0x0001); in dc_pad_callback() 46 input_report_key(dev, BTN_B, buttons & 0x0002); in dc_pad_callback() 47 input_report_key(dev, BTN_A, buttons & 0x0004); in dc_pad_callback() 48 input_report_key(dev, BTN_START, buttons & 0x0008); in dc_pad_callback() 49 input_report_key(dev, BTN_Z, buttons & 0x0100); in dc_pad_callback() 50 input_report_key(dev, BTN_Y, buttons & 0x0200); in dc_pad_callback() 51 input_report_key(dev, BTN_X, buttons & 0x0400); in dc_pad_callback() 52 input_report_key(dev, BTN_SELECT, buttons & 0x0800); in dc_pad_callback()
|
D | a3d.c | 127 input_report_key(dev, BTN_RIGHT, data[2] & 1); in a3d_read() 128 input_report_key(dev, BTN_LEFT, data[3] & 2); in a3d_read() 129 input_report_key(dev, BTN_MIDDLE, data[3] & 4); in a3d_read() 147 input_report_key(dev, BTN_RIGHT, data[2] & 1); in a3d_read() 148 input_report_key(dev, BTN_LEFT, data[3] & 2); in a3d_read() 149 input_report_key(dev, BTN_MIDDLE, data[3] & 4); in a3d_read() 150 input_report_key(dev, BTN_SIDE, data[7] & 2); in a3d_read() 151 input_report_key(dev, BTN_EXTRA, data[7] & 4); in a3d_read() 163 input_report_key(dev, BTN_TRIGGER, data[8] & 1); in a3d_read() 164 input_report_key(dev, BTN_THUMB, data[8] & 2); in a3d_read() [all …]
|
D | gamecon.c | 257 input_report_key(dev, gc_n64_btn[j], in gc_n64_process_packet() 400 input_report_key(dev, gc_snes_btn[j], in gc_nes_process_packet() 411 input_report_key(dev, gc_snes_btn[j], in gc_nes_process_packet() 428 input_report_key(dev, BTN_LEFT, s & data[9]); in gc_nes_process_packet() 429 input_report_key(dev, BTN_RIGHT, s & data[8]); in gc_nes_process_packet() 502 input_report_key(dev, BTN_THUMB, s & data[5]); in gc_multi_process_packet() 510 input_report_key(dev, BTN_TRIGGER, s & data[4]); in gc_multi_process_packet() 654 input_report_key(dev, BTN_THUMBL, ~data[0] & 0x04); in gc_psx_report_one() 655 input_report_key(dev, BTN_THUMBR, ~data[0] & 0x02); in gc_psx_report_one() 662 input_report_key(dev, gc_psx_ddr_btn[i], in gc_psx_report_one() [all …]
|
D | warrior.c | 74 input_report_key(dev, BTN_TRIGGER, data[3] & 1); in warrior_process_packet() 75 input_report_key(dev, BTN_THUMB, (data[3] >> 1) & 1); in warrior_process_packet() 76 input_report_key(dev, BTN_TOP, (data[3] >> 2) & 1); in warrior_process_packet() 77 input_report_key(dev, BTN_TOP2, (data[3] >> 3) & 1); in warrior_process_packet()
|
/linux-3.4.99/drivers/hid/ |
D | hid-wacom.c | 246 input_report_key(input, BTN_LEFT, 0); in wacom_gr_parse_report() 247 input_report_key(input, BTN_RIGHT, 0); in wacom_gr_parse_report() 248 input_report_key(input, BTN_MIDDLE, 0); in wacom_gr_parse_report() 252 input_report_key(input, BTN_TOUCH, 0); in wacom_gr_parse_report() 253 input_report_key(input, BTN_STYLUS, 0); in wacom_gr_parse_report() 254 input_report_key(input, BTN_STYLUS2, 0); in wacom_gr_parse_report() 257 input_report_key(input, wdata->tool, 0); in wacom_gr_parse_report() 262 input_report_key(input, tool, 1); in wacom_gr_parse_report() 271 input_report_key(input, BTN_MIDDLE, data[1] & 0x04); in wacom_gr_parse_report() 278 input_report_key(input, BTN_LEFT, data[1] & 0x01); in wacom_gr_parse_report() [all …]
|
D | hid-wiimote-ext.c | 380 input_report_key(ext->input, in handler_nunchuck() 382 input_report_key(ext->input, in handler_nunchuck() 385 input_report_key(ext->input, in handler_nunchuck() 387 input_report_key(ext->input, in handler_nunchuck() 470 input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_RIGHT], in handler_classic() 472 input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_DOWN], in handler_classic() 474 input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_LT], in handler_classic() 476 input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_MINUS], in handler_classic() 478 input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_HOME], in handler_classic() 480 input_report_key(ext->input, wiiext_keymap[WIIEXT_KEY_PLUS], in handler_classic() [all …]
|
/linux-3.4.99/drivers/input/mouse/ |
D | sermouse.c | 72 input_report_key(dev, BTN_LEFT, !(data & 4)); in sermouse_process_msc() 73 input_report_key(dev, BTN_RIGHT, !(data & 1)); in sermouse_process_msc() 74 input_report_key(dev, BTN_MIDDLE, !(data & 2)); in sermouse_process_msc() 118 input_report_key(dev, BTN_LEFT, (data >> 5) & 1); in sermouse_process_ms() 119 input_report_key(dev, BTN_RIGHT, (data >> 4) & 1); in sermouse_process_ms() 133 input_report_key(dev, BTN_MIDDLE, !test_bit(BTN_MIDDLE, dev->key)); in sermouse_process_ms() 151 input_report_key(dev, BTN_MIDDLE, (data >> 5) & 1); in sermouse_process_ms() 152 input_report_key(dev, BTN_SIDE, (data >> 4) & 1); in sermouse_process_ms() 157 input_report_key(dev, BTN_SIDE, (data >> 5) & 1); in sermouse_process_ms() 160 input_report_key(dev, BTN_MIDDLE, (data >> 4) & 1); in sermouse_process_ms() [all …]
|
D | vsxxxaa.c | 256 input_report_key(dev, BTN_LEFT, left); in vsxxxaa_handle_REL_packet() 257 input_report_key(dev, BTN_MIDDLE, middle); in vsxxxaa_handle_REL_packet() 258 input_report_key(dev, BTN_RIGHT, right); in vsxxxaa_handle_REL_packet() 259 input_report_key(dev, BTN_TOUCH, 0); in vsxxxaa_handle_REL_packet() 308 input_report_key(dev, BTN_LEFT, left); in vsxxxaa_handle_ABS_packet() 309 input_report_key(dev, BTN_MIDDLE, middle); in vsxxxaa_handle_ABS_packet() 310 input_report_key(dev, BTN_RIGHT, right); in vsxxxaa_handle_ABS_packet() 311 input_report_key(dev, BTN_TOUCH, touch); in vsxxxaa_handle_ABS_packet() 361 input_report_key(dev, BTN_LEFT, left); in vsxxxaa_handle_POR_packet() 362 input_report_key(dev, BTN_MIDDLE, middle); in vsxxxaa_handle_POR_packet() [all …]
|
D | alps.c | 143 input_report_key(dev, BTN_LEFT, left); in alps_report_buttons() 146 input_report_key(dev, BTN_RIGHT, right); in alps_report_buttons() 149 input_report_key(dev, BTN_MIDDLE, middle); in alps_report_buttons() 224 input_report_key(dev, BTN_TOOL_FINGER, 0); in alps_process_packet_v1_v2() 230 input_report_key(dev, BTN_TOUCH, 1); in alps_process_packet_v1_v2() 232 input_report_key(dev, BTN_TOUCH, 0); in alps_process_packet_v1_v2() 240 input_report_key(dev, BTN_TOOL_FINGER, z > 0); in alps_process_packet_v1_v2() 246 input_report_key(dev, BTN_FORWARD, forward); in alps_process_packet_v1_v2() 247 input_report_key(dev, BTN_BACK, back); in alps_process_packet_v1_v2() 251 input_report_key(dev, BTN_0, packet[2] & 4); in alps_process_packet_v1_v2() [all …]
|
D | logips2pp.c | 63 input_report_key(dev, BTN_SIDE, (packet[2] >> 4) & 1); in ps2pp_process_byte() 64 input_report_key(dev, BTN_EXTRA, (packet[2] >> 5) & 1); in ps2pp_process_byte() 70 input_report_key(dev, BTN_SIDE, (packet[2]) & 1); in ps2pp_process_byte() 71 input_report_key(dev, BTN_EXTRA, (packet[2] >> 1) & 1); in ps2pp_process_byte() 72 input_report_key(dev, BTN_BACK, (packet[2] >> 3) & 1); in ps2pp_process_byte() 73 input_report_key(dev, BTN_FORWARD, (packet[2] >> 4) & 1); in ps2pp_process_byte() 74 input_report_key(dev, BTN_TASK, (packet[2] >> 2) & 1); in ps2pp_process_byte() 97 input_report_key(dev, BTN_LEFT, packet[0] & 1); in ps2pp_process_byte() 98 input_report_key(dev, BTN_MIDDLE, (packet[0] >> 2) & 1); in ps2pp_process_byte() 99 input_report_key(dev, BTN_RIGHT, (packet[0] >> 1) & 1); in ps2pp_process_byte()
|
D | elantech.c | 268 input_report_key(dev, BTN_TOUCH, fingers != 0); in elantech_report_absolute_v1() 281 input_report_key(dev, BTN_TOOL_FINGER, fingers == 1); in elantech_report_absolute_v1() 282 input_report_key(dev, BTN_TOOL_DOUBLETAP, fingers == 2); in elantech_report_absolute_v1() 283 input_report_key(dev, BTN_TOOL_TRIPLETAP, fingers == 3); in elantech_report_absolute_v1() 284 input_report_key(dev, BTN_LEFT, packet[0] & 0x01); in elantech_report_absolute_v1() 285 input_report_key(dev, BTN_RIGHT, packet[0] & 0x02); in elantech_report_absolute_v1() 290 input_report_key(dev, BTN_FORWARD, packet[0] & 0x40); in elantech_report_absolute_v1() 292 input_report_key(dev, BTN_BACK, packet[0] & 0x80); in elantech_report_absolute_v1() 385 input_report_key(dev, BTN_TOUCH, fingers != 0); in elantech_report_absolute_v2() 391 input_report_key(dev, BTN_TOOL_FINGER, fingers == 1); in elantech_report_absolute_v2() [all …]
|
D | synaptics_usb.c | 99 input_report_key(input_dev, BTN_LEFT, synusb->data[1] & 0x04); in synusb_report_buttons() 100 input_report_key(input_dev, BTN_RIGHT, synusb->data[1] & 0x01); in synusb_report_buttons() 101 input_report_key(input_dev, BTN_MIDDLE, synusb->data[1] & 0x02); in synusb_report_buttons() 165 input_report_key(input_dev, BTN_TOUCH, 1); in synusb_report_touchpad() 167 input_report_key(input_dev, BTN_TOUCH, 0); in synusb_report_touchpad() 178 input_report_key(input_dev, BTN_TOOL_FINGER, num_fingers == 1); in synusb_report_touchpad() 179 input_report_key(input_dev, BTN_TOOL_DOUBLETAP, num_fingers == 2); in synusb_report_touchpad() 180 input_report_key(input_dev, BTN_TOOL_TRIPLETAP, num_fingers == 3); in synusb_report_touchpad() 184 input_report_key(input_dev, BTN_MIDDLE, synusb->data[1] & 0x08); in synusb_report_touchpad()
|
D | atarimouse.c | 85 input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4); in atamouse_interrupt() 86 input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2); in atamouse_interrupt() 87 input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1); in atamouse_interrupt()
|
D | rpcmouse.c | 56 input_report_key(dev, BTN_LEFT, b & 0x40); in rpcmouse_irq() 57 input_report_key(dev, BTN_MIDDLE, b & 0x20); in rpcmouse_irq() 58 input_report_key(dev, BTN_RIGHT, b & 0x10); in rpcmouse_irq()
|
/linux-3.4.99/drivers/input/keyboard/ |
D | ep93xx_keypad.c | 101 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() 104 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler() 106 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler() 107 input_report_key(input_dev, key2, 1); in ep93xx_keypad_irq_handler() 114 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() 117 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler() 119 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler() 125 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() 126 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler()
|
/linux-3.4.99/drivers/macintosh/ |
D | adbhid.c | 332 input_report_key(ahid->input, KEY_CAPSLOCK, 1); in adbhid_input_keycode() 334 input_report_key(ahid->input, KEY_CAPSLOCK, 0); in adbhid_input_keycode() 396 input_report_key(adbhid[id]->input, key, !up_flag); in adbhid_input_keycode() 488 input_report_key(adbhid[id]->input, BTN_LEFT, !((data[1] >> 7) & 1)); in adbhid_mouse_input() 489 input_report_key(adbhid[id]->input, BTN_MIDDLE, !((data[2] >> 7) & 1)); in adbhid_mouse_input() 492 input_report_key(adbhid[id]->input, BTN_RIGHT, !((data[3] >> 7) & 1)); in adbhid_mouse_input() 520 input_report_key(adbhid[id]->input, KEY_SOUND, down); in adbhid_buttons_input() 524 input_report_key(adbhid[id]->input, KEY_MUTE, down); in adbhid_buttons_input() 528 input_report_key(adbhid[id]->input, KEY_VOLUMEDOWN, down); in adbhid_buttons_input() 532 input_report_key(adbhid[id]->input, KEY_VOLUMEUP, down); in adbhid_buttons_input() [all …]
|
/linux-3.4.99/drivers/input/touchscreen/ |
D | wacom_w8001.c | 227 input_report_key(dev, BTN_TOUCH, 0); in report_pen_events() 228 input_report_key(dev, BTN_STYLUS, 0); in report_pen_events() 229 input_report_key(dev, BTN_STYLUS2, 0); in report_pen_events() 230 input_report_key(dev, BTN_TOOL_RUBBER, 0); in report_pen_events() 237 input_report_key(dev, BTN_TOUCH, 0); in report_pen_events() 238 input_report_key(dev, BTN_TOOL_FINGER, 0); in report_pen_events() 247 input_report_key(dev, BTN_STYLUS2, coord->f2); in report_pen_events() 254 input_report_key(dev, BTN_TOUCH, coord->tsw); in report_pen_events() 255 input_report_key(dev, BTN_STYLUS, coord->f1); in report_pen_events() 256 input_report_key(dev, w8001->type, coord->rdy); in report_pen_events() [all …]
|
/linux-3.4.99/drivers/hid/usbhid/ |
D | usbmouse.c | 81 input_report_key(dev, BTN_LEFT, data[0] & 0x01); in usb_mouse_irq() 82 input_report_key(dev, BTN_RIGHT, data[0] & 0x02); in usb_mouse_irq() 83 input_report_key(dev, BTN_MIDDLE, data[0] & 0x04); in usb_mouse_irq() 84 input_report_key(dev, BTN_SIDE, data[0] & 0x08); in usb_mouse_irq() 85 input_report_key(dev, BTN_EXTRA, data[0] & 0x10); in usb_mouse_irq()
|