Bug 41142 - HuiJia USB Gamepad is detected as single joystick device although two SNES gamepads are connected to it
Summary: HuiJia USB Gamepad is detected as single joystick device although two SNES ga...
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Jiri Kosina
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-14 11:29 UTC by Clemens Werther
Modified: 2011-08-25 13:36 UTC (History)
2 users (show)

See Also:
Kernel Version: 3.1.0-rc1+
Subsystem:
Regression: No
Bisected commit-id:


Attachments
create joystick devices for both gamepads connected to a HuiJia USB Gamepad connector (1.24 KB, patch)
2011-08-14 11:29 UTC, Clemens Werther
Details | Diff

Description Clemens Werther 2011-08-14 11:29:40 UTC
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
Comment 1 Jiri Kosina 2011-08-25 13:36:15 UTC
Applied, thanks.

Note You need to log in before you can comment on or make changes to this bug.