Coverity thinks the fallthroughs are smelly. They are correct, but everything else in this function is like "wut?". Refer explicitly to bits 8 and 9 of hs->kbd.modifiers instead of shifting right first and using (1 << 7). Document what the scancode is when hid_code is 0xe0. And add plenty of comments. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> |
||
|---|---|---|
| .. | ||
| Makefile.objs | ||
| adb.c | ||
| hid.c | ||
| lm832x.c | ||
| milkymist-softusb.c | ||
| pckbd.c | ||
| pl050.c | ||
| ps2.c | ||
| pxa2xx_keypad.c | ||
| stellaris_input.c | ||
| tsc210x.c | ||
| tsc2005.c | ||
| virtio-input-hid.c | ||
| virtio-input-host.c | ||
| virtio-input.c | ||
| vmmouse.c | ||