Lines Matching refs:virt_keyboard
20 static struct input_dev *virt_keyboard; variable
26 virt_keyboard = input_allocate_device(); in speakup_add_virtual_keyboard()
28 if (!virt_keyboard) in speakup_add_virtual_keyboard()
31 virt_keyboard->name = "Speakup"; in speakup_add_virtual_keyboard()
32 virt_keyboard->id.bustype = BUS_VIRTUAL; in speakup_add_virtual_keyboard()
33 virt_keyboard->phys = "speakup/input0"; in speakup_add_virtual_keyboard()
34 virt_keyboard->dev.parent = NULL; in speakup_add_virtual_keyboard()
36 __set_bit(EV_KEY, virt_keyboard->evbit); in speakup_add_virtual_keyboard()
37 __set_bit(KEY_DOWN, virt_keyboard->keybit); in speakup_add_virtual_keyboard()
39 err = input_register_device(virt_keyboard); in speakup_add_virtual_keyboard()
41 input_free_device(virt_keyboard); in speakup_add_virtual_keyboard()
42 virt_keyboard = NULL; in speakup_add_virtual_keyboard()
50 if (virt_keyboard) { in speakup_remove_virtual_keyboard()
51 input_unregister_device(virt_keyboard); in speakup_remove_virtual_keyboard()
52 virt_keyboard = NULL; in speakup_remove_virtual_keyboard()
69 input_report_key(virt_keyboard, KEY_DOWN, PRESSED); in speakup_fake_down_arrow()
70 input_report_key(virt_keyboard, KEY_DOWN, RELEASED); in speakup_fake_down_arrow()
71 input_sync(virt_keyboard); in speakup_fake_down_arrow()