在Windows中使用iPhone作为控制设备(游戏控制器类型) [英] Using iPhone as control device (game controller type) in Windows

查看:116
本文介绍了在Windows中使用iPhone作为控制设备(游戏控制器类型)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将iPhone用作计算机的接口设备而无需实际编写驱动程序?作为一个低于标准的游戏控制器的拥有者,并意识到它将是便宜的并且是一个很好的经验,我试图自己动手,我不知道从哪里开始在PC端。我能够在iPhone上处理加速度计和触摸事件并通过网络发送它们,但是我将从哪里开始在Windows端?我宁愿不像驱动程序那样低级别,但我希望能够将加速度计用作模拟输入设备,并将屏幕上的按钮用作常规按钮。我该怎么办呢?如果我必须编写一个驱动程序,那么什么是一个很好的参考/代码示例?

Is there a way to use the iPhone as an interface device for a computer without actually having to code a driver? Being the owner of a sub-par game controller and realizing that it would be cheap and a good experience to try to roll my own, I have no idea where to begin on the PC side. I am capable of processing accelerometer and touch events on the iPhone and sending them over a network, but where would I begin on the Windows side? I'd prefer to not get as low level as a driver, but I want to be able to use the accelerometer as an analog input device and buttons on the screen as regular buttons. How should I go about this? If I have to write a driver, what would be a good reference/code sample to start with?

推荐答案

你没有只要您处理iPhone在PC上发送的数据,就需要编写驱动程序。至于在PC端开始的地方,你需要做的就是创建一个小程序来监听套接字上的数据。您可以使用任何语言C,C ++,Java等制作该程序。我曾参与过您提到的类似应用程序。在PC上我使用Java和Visual Studio IDE。

You don't need to write drivers as long as you handle the data being sent by the iPhone on PC. As far as where to begin on PC side, all you need to do is create a small program which listens for data on the socket. You can make that program in any language C, C++, Java etc. I had worked on a similar application as mentioned by you. On PC I used Java with Visual Studio IDE.

这篇关于在Windows中使用iPhone作为控制设备(游戏控制器类型)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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