是否有可能写在Android上输入系统中的驱动器 [英] Is it possible to write a driver for the input system in android

查看:140
本文介绍了是否有可能写在Android上输入系统中的驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能进行公开的SDK应用程序只写一个驱动到一个输入设备,如使用新的3.1的USB的API,使用一些模糊的,可能是外星人,协议在USB摇杆?

Is it possible for a public sdk only app write a "driver" to an input device, like a joystick that uses some vague, possibly alien, protocol over USB using the new 3.1 USB Apis?

例如,才有可能实现对全新的,刚刚出了门O型三角3.15控制器驱动程序13操纵杆和159按键和虚拟头部跟踪和苏打水饮水机,或将这种有等待机器人来与O型三角3.15的控制器一个新的低级别的驱动程序更新

For example, would it be possible to implement a driver for the brand-new-just-out-the-door O-Triangle 3.15 Controller with 13 joysticks and 159 buttons and virtual head tracking and soda dispenser, or would this have to wait for android to be updated with a new low-level driver for the O-Triangle 3.15's controller

推荐答案

我们已经成功写入USB设备,而无需使用这种code内核驱动程序: http://android.serverbox.ch/?p=370

We have had success writing to USB devices without kernel drivers using this code: http://android.serverbox.ch/?p=370

我们能够编写通用的大容量数据包发送到USB端点。我猜想,你可以为其他类型的USB设备(HID等)做相同。需要注意的是三星Galaxy Tab 10.1似乎缺乏正确发现USB设备(如3.1的touchwiz更新)所需的组件。然而,它的工作原理上的宏碁A500给我们。

We are able to write generic bulk packets to the USB endpoints. I would imagine that you could do the same for other types of USB devices (HID, etc). Note that the Samsung Galaxy Tab 10.1 seems to lack the components required to discover USB devices properly (as of the 3.1 touchwiz update). However it works for us on an Acer A500.

我不知道使其成为全系统的,但我想它可能是。我建议在看Wiimote的应用程序是如何做到这一点。我知道你可以下载,让你配对的Wiimote与手机,然后把它作为一个通用控制器,游戏等应用程序。

I don't know about making it system-wide, but I imagine it could be. I'd suggest looking at how the Wiimote apps do it. I know you can download apps that let you pair a Wiimote with the phone and then use it as a general purpose controller for games etc.

另外,我真的很喜欢用13操纵杆控制器和苏打水饮水机! ;)

Also, I'd really like a controller with 13 Joysticks and a soda dispenser! ;)

这篇关于是否有可能写在Android上输入系统中的驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆