Created attachment 68772 [details] create joystick devices for both gamepads connected to a HuiJia USB Gamepad connector Actual Results: When I connect a HuiJia USB Gamepad (a connector for two SNES gamepads) to my computer, only one jostick device shows up, handling the inputs of both gamepads. Expected Results: Each gamepad should be detected as a separate joystick. Attachment: The attached patch leads to the expected result, but altough two jostick devices are created, four events are created, too. I am not sure, what event 9 and 10 do, though. # lsinput [...] /dev/input/event7 bustype : BUS_USB vendor : 0xe8f product : 0x3013 version : 272 name : "HuiJia USB GamePad" phys : "usb-0000:00:1d.0-1/input0" uniq : "" bits ev : EV_SYN EV_KEY EV_ABS EV_MSC /dev/input/event8 bustype : BUS_USB vendor : 0xe8f product : 0x3013 version : 272 name : "HuiJia USB GamePad" phys : "usb-0000:00:1d.0-1/input0" uniq : "" bits ev : EV_SYN EV_KEY EV_ABS EV_MSC /dev/input/event9 bustype : BUS_USB vendor : 0xe8f product : 0x3013 version : 272 name : "HuiJia USB GamePad" phys : "usb-0000:00:1d.0-1/input0" uniq : "" bits ev : EV_SYN /dev/input/event10 bustype : BUS_USB vendor : 0xe8f product : 0x3013 version : 272 name : "HuiJia USB GamePad" phys : "usb-0000:00:1d.0-1/input0" uniq : "" bits ev : EV_SYN
Applied, thanks.