|
有一个乐视无线游戏手柄 尚酷版,规格是LeWGP-201,在emuElec下面不支持back键,其实下面还有3个android的 TV、HOME、MENU键也不支持。
自我折腾如下:
- CoreELEC:~ # cat /proc/bus/input/devices
复制代码
I: Bus=0010 Vendor=0001 Product=0001 Version=0100
N: Name="gpio_keypad"
P: Phys=gpio_keypad/input0
S: Sysfs=/devices/gpio_keypad.48/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=100003
B: KEY=100000 0 0 0
I: Bus=0010 Vendor=1b8e Product=0cec Version=0001
N: Name="cec_input"
P: Phys=
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=20000000 0 0 0 0 0 0 0 0 0 0 fc004 4c00 0 0 1 4 10300 51fa 40000801 1e1680 0 100000 10000ffc
I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="meson-ir"
P: Phys=meson-ir/input0
S: Sysfs=/devices/c8100580.meson-ir/rc/rc0/input4
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=100013
B: KEY=1000000 0 0 0 0
B: MSC=10
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="MCE IR Keyboard/Mouse (meson-ir)"
P: Phys=/input0
S: Sysfs=/devices/virtual/input/input5
U: Uniq=
H: Handlers=kbd mouse0 event5
B: PROP=0
B: EV=100017
B: KEY=30000 0 7 ff87207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: REL=3
B: MSC=10
I: Bus=0003 Vendor=0101 Product=1d79 Version=0110
N: Name="MY-POWER LeWGP-201"
P: Phys=usb-xhci-hcd.0.auto-1.2/input0
S: Sysfs=/devices/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.0/0003:0101:1D79.0005/input/input9
U: Uniq=
H: Handlers=js0 event2
B: PROP=0
B: EV=1b
B: KEY=7fff0000 0 0 0 0 0 0 0 0 0
B: ABS=3063f
B: MSC=10
I: Bus=0003 Vendor=0101 Product=1d79 Version=0110
N: Name="MY-POWER LeWGP-201"
P: Phys=usb-xhci-hcd.0.auto-1.2/input1
S: Sysfs=/devices/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.1/0003:0101:1D79.0006/input/input10
U: Uniq=
H: Handlers=kbd event3
B: PROP=0
B: EV=1f
B: KEY=3007f 0 0 0 0 483ffff 17aff32d bf544446 0 0 1 120c13 b17c000 267bfa d941dfed 9e1680 4400 0 10000002
B: REL=40
B: ABS=1 0
B: MSC=10 应该是生成了两个设备,一个是JS0 -- joystick,一个是event3 -- keyboard
jstest --event /dev/input/js0 可以看到正常使用(除了不能用的件) -- 这个在emulation station里面还有RetroArch里面都用的这个
evtest /dev/input/event3 可以看到不支持的键都在这里面支持。。。。。BACK/TV/HOME/MENU这四个键
问题:
能不能把现在不支持的这几个键合并到/dev/input/js0里面????
请大神指点
|
|