usbkbd.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) | usbkbd.c (9fee8240cfd37081c88e2d84852c497ba18baeac) |
---|---|
1/* 2 * Copyright (c) 1999-2001 Vojtech Pavlik 3 * 4 * USB HIDBP Keyboard support 5 */ 6 7/* 8 * This program is free software; you can redistribute it and/or modify --- 132 unchanged lines hidden (view full) --- 141 kbd->old[i]); 142 } 143 144 if (kbd->new[i] > 3 && memscan(kbd->old + 2, kbd->new[i], 6) == kbd->old + 8) { 145 if (usb_kbd_keycode[kbd->new[i]]) 146 input_report_key(kbd->dev, usb_kbd_keycode[kbd->new[i]], 1); 147 else 148 hid_info(urb->dev, | 1/* 2 * Copyright (c) 1999-2001 Vojtech Pavlik 3 * 4 * USB HIDBP Keyboard support 5 */ 6 7/* 8 * This program is free software; you can redistribute it and/or modify --- 132 unchanged lines hidden (view full) --- 141 kbd->old[i]); 142 } 143 144 if (kbd->new[i] > 3 && memscan(kbd->old + 2, kbd->new[i], 6) == kbd->old + 8) { 145 if (usb_kbd_keycode[kbd->new[i]]) 146 input_report_key(kbd->dev, usb_kbd_keycode[kbd->new[i]], 1); 147 else 148 hid_info(urb->dev, |
149 "Unknown key (scancode %#x) released.\n", | 149 "Unknown key (scancode %#x) pressed.\n", |
150 kbd->new[i]); 151 } 152 } 153 154 input_sync(kbd->dev); 155 156 memcpy(kbd->old, kbd->new, 8); 157 --- 254 unchanged lines hidden --- | 150 kbd->new[i]); 151 } 152 } 153 154 input_sync(kbd->dev); 155 156 memcpy(kbd->old, kbd->new, 8); 157 --- 254 unchanged lines hidden --- |