婆罗门
精华
|
战斗力 鹅
|
回帖 0
注册时间 2013-6-28
|
对于旧版手柄可以用USB / BT Joystick这个软件
对于所有即插即用的手柄
可以找到设备的vid和pid
在/system/usr/keylayout中添加相应的kl文件
那么问题来了 不支持即插即用的带3.5mm耳机接口的新款手柄应该怎么办
在外网看到了这样一个回答
A. Download the Android kernel sources for you device (see instructions https://source.android.com/source/building-kernels.html)
B. In the kernel sources, replace the file xpad.c under /drivers/input/joystick/ with the newest sources from here: https://github.com/paroj/xpad
C. Rebuild the whole kernel and replace your boot image, or just build xpad as a kernel module and load it using insmod from the adb shell
(不太懂linux驱动是怎么一回事 求教一下更具体的过程) |
|