Logicool K400r + Raspberry Pi Zero W + Raspberry Pi OS buster ============================================================= * event0 : keyboard * event0 : mouse (touchpad) - - - ``` $ ls -alF /dev/input/ 合計 0 drwxr-xr-x 4 root root 140 2月 26 09:29 ./ drwxr-xr-x 17 root root 3660 2月 26 09:29 ../ drwxr-xr-x 2 root root 100 2月 26 09:29 by-id/ drwxr-xr-x 2 root root 80 2月 26 09:29 by-path/ crw-rw---- 1 root input 13, 64 2月 26 09:29 event0 crw-rw---- 1 root input 13, 63 2月 26 09:28 mice crw-rw---- 1 root input 13, 32 2月 26 09:29 mouse0 $ ls -alF /dev/input/by-id/ 合計 0 drwxr-xr-x 2 root root 100 2月 26 09:29 ./ drwxr-xr-x 4 root root 140 2月 26 09:29 ../ lrwxrwxrwx 1 root root 9 2月 26 09:29 usb-Logitech_USB_Receiver-event-if01 -> ../event2 lrwxrwxrwx 1 root root 9 2月 26 09:29 usb-Logitech_USB_Receiver-if02-event-mouse -> ../event0 lrwxrwxrwx 1 root root 9 2月 26 09:29 usb-Logitech_USB_Receiver-if02-mouse -> ../mouse0 $ ls -alF /dev/input/by-path/ 合計 0 drwxr-xr-x 2 root root 80 2月 26 09:29 ./ drwxr-xr-x 4 root root 140 2月 26 09:29 ../ lrwxrwxrwx 1 root root 9 2月 26 09:29 platform-20980000.usb-usb-0:1.1:1.2-event-mouse -> ../event0 lrwxrwxrwx 1 root root 9 2月 26 09:29 platform-20980000.usb-usb-0:1.1:1.2-mouse -> ../mouse0 $ cat /proc/bus/input/devices I: Bus=0003 Vendor=046d Product=4024 Version=0111 N: Name="Logitech K400" P: Phys=usb-20980000.usb-1.1/input2:1 S: Sysfs=/devices/platform/soc/20980000.usb/usb1/1-1/1-1.1/1-1.1:1.2/0003:046D:C52B.0003/0003:046D:4024.0004/input/input12 U: Uniq=4024-73-8d-f5-e4 H: Handlers=sysrq kbd leds mouse0 event0 B: PROP=0 B: EV=12001f B: KEY=3f 301ff 0 0 0 0 483ffff 17aff32d bfd44446 0 0 ffff0001 130ff3 8b17c007 ffff7bfa d941dfff ffbeffdf ffefffff ffffffff fffffffe B: REL=1943 B: ABS=1 0 B: MSC=10 B: LED=1f ``` ``` > python evdump.py Please input, hexadecimal or 'exit' EV=12001f -> EV_SYN EV_KEY EV_REL EV_ABS EV_MSC EV_LED EV_REP ``` ``` $ lsinput /dev/input/event0 bustype : BUS_USB vendor : 0x46d product : 0x4024 version : 273 name : "Logitech K400" phys : "usb-20980000.usb-1.1/input2:1" uniq : "4024-73-8d-f5-e4" bits ev : EV_SYN EV_KEY EV_REL EV_ABS EV_MSC EV_LED EV_REP ```