如何模拟虚拟输入设备 [英] How do I emulate a virtual input device

查看:119
本文介绍了如何模拟虚拟输入设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第一期:关于Driver Dev的大量信息。只是老路。





有很多输入游戏,比如Anlaog轴blabla。

我想要做的是创建一些简单的GUI,而不是想要解决那么大的问题。

但它需要像Windows设备管理器中的游戏控制器一样。

例如App中的Slider。将会像一个移动的物理操纵杆一样。



也许是一个我无法找到的图书馆?或者我真的需要自己开发一个驱动程序。如果是这样的话,我会找到更多的最新信息。



我尝试了什么:

< br $>
驱动程序开发第1部分(自2005年2月起)

一些正在进行的MSDN研究。

解决方案

你不是写一个应用程序。您正在编写一个驱动程序,该应用程序为应用程序提供了与之通信的界面,并且在另一侧表现得像普通的操纵杆设备驱动程序。



需要另一个应用程序告诉司机如何表现,例如操纵杆位置,按钮按下和释放,......这是用户与之交互的应用程序。



更新的设备驱动程序docs从 Windows Driver Kit文档开始 - Windows驱动程序Microsoft Docs [ ^ ]

First Issue: to much Info about Driver Dev. is just way to old.


There is s Game whit lots of Inputs, like Anlaog axis blabla.
What i want to do is create some simple GUI, not to fancy not that big of a problem.
But it needs to act like a gamecontroller in the windows Device Manager.
For example a Slider in the App. will act like a phisical joystick had been moved.

Maybe a libary that i am unable to find? Or do i really have to develop a Driver myself. And if so were do i find some more upto date Information.

What I have tried:

Driver Development Part 1 (from Feb 2005)
Some ongoing MSDN research.

解决方案

You're not writing a single app. You're writing a driver that exposes an interface for an app to talk to it and behave like a normal joystick device driver on the other side.

Another application is needed to tell the driver how to behave, such as stick positions, button push and release, ... This is the app the user interacts with.

The updated device driver docs starts at Windows Driver Kit documentation - Windows drivers | Microsoft Docs[^].


这篇关于如何模拟虚拟输入设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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