找回密码
 立即注册
搜索
查看: 2303|回复: 3

[外设] xboxone手柄需要怎么在android设备上工作(召唤linux高手)

[复制链接]
     
发表于 2016-4-7 15:29 | 显示全部楼层 |阅读模式
对于旧版手柄可以用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驱动是怎么一回事 求教一下更具体的过程)
回复

使用道具 举报

     
发表于 2016-4-7 16:25 来自手机 | 显示全部楼层
这么复杂啊!帮顶一个
回复

使用道具 举报

发表于 2016-4-7 16:34 来自手机 | 显示全部楼层
用源代码重新build整个系统,别想了

—— 来自 HUAWEI NXT-AL10, Android 6.0
回复

使用道具 举报

     
发表于 2016-4-7 17:52 来自手机 | 显示全部楼层
allenz 发表于 2016-4-7 16:34
用源代码重新build整个系统,别想了

—— 来自 HUAWEI NXT-AL10, Android 6.0

就build一个内核啊。。不过对于没有经验的人也够折腾一壶了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|上海互联网违法和不良信息举报中心|网上有害信息举报专区|962110 反电信诈骗|举报电话 021-62035905|Stage1st ( 沪ICP备13020230号-1|沪公网安备 31010702007642号 )

GMT+8, 2025-8-22 14:43 , Processed in 0.030295 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表