开发者

Is it possible to register software as a game controller device?

开发者 https://www.devze.com 2023-03-08 06:02 出处:网络
I\'ve seen questions like this stackoverflow question.However, in this and many other discussion like it the end result tends to be spamming keyboard events instead of operating, and being recognized

I've seen questions like this stackoverflow question. However, in this and many other discussion like it the end result tends to be spamming keyboard events instead of operating, and being recognized as, a game controller.

I'm pretty certain drivers would be necessary to create that additional functionality. With that in mind, is it possible for a software application to masquerade as an input device like a analog game c开发者_开发问答ontroller? I'm very new to developing drivers and this is beyond my scope of knwoledge.


Take a look at http://code.google.com/p/vmulti/ it implements a virtual joystick (along with some other devices) and also has a basic client api for synthesizing your own input events


Yes, it's possible in theory. The term I've seen used is "software-only device driver." Since you can make a software-only driver that emulates a storage device (e.g., DAEMON Tools), implementing the DirectInput or XInput interfaces is definitely doable.

0

精彩评论

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