开发者

dual mouse input - simulate multi-touch

Ive always thought this would be cool, and now the OS technology seems it could really 开发者_开发技巧make it easy to implement-

Is there a known/easy way to hook up dual mice as inputs to a multi-touch enabled OS, such as Win7, and use one in each hand to simulate two hands (or fingers?) on the screen? This would make it easy to stretch, rotate, etc and simulate a lot of the gestures used on touchscreens.

I think it might be alot of fun for certain kinds of games, and many artistic apps as well.


In Windows, you can use the Direct Input API included in DirectX 8+ to read the independent input of as many mice as desired. Easiest way is to get ahold of several USB mice and connect them all at once.

Also, you don't need to have a 3D view whatsoever to take advantage of DirectInput, you can use access the API from a regular Win32 or .Net app.

For instance, the PC game Ricochet Infinity allows two mice as input for its two player co-op mode.


A platform independent solution is for multiple mouse input is http://www.icculus.org/manymouse/ Like the Windows-only solution posted, This still wont let you do multi-touch in chrome, or the android emulator (Though, both should be relatively simple to implement), etc.

If you want to simulate multi-touch in other peoples software, things are a little trickier.

Just about any non-windows system can support multiple pointers for the main interface: http://en.wikipedia.org/wiki/Multi-Pointer_X

Chrome supports simulating touch events, unsure on multi-touch


it is possible to simulate mouse input to touches pointer with Multi Touch Vista

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜