如何拦截并翻译USB事件
我想使用飞利浦 LFH-2330 来查看图像(使用 Windows Image Viewer 或其他查看器,如 IrfanView 等)。
LFH-2330 是一个带有四个踏板的脚踏控制器(请参阅 此处为例)用于控制音频播放软件进行转录。它带有自己的驱动程序和软件。
对我来说最简单的设置是一个软件,它可以从控制器捕获踏板事件并触发键盘事件(右踏板 => 右箭头,左踏板 => 左箭头)。
然而,这个简单的设置需要查看应用程序处于焦点状态才能工作。
更好的解决方案是能够通过脚踏控制器控制查看应用程序,而应用程序不会(或不会进入)焦点,这样我就可以用手打字并同时用脚分页。 (但这也可以用两台计算机来实现)。
解决这个问题的最佳方法是什么?
I would like to use the Philips LFH-2330 to view images (with Windows Image Viewer or another viewer such as IrfanView, etc.)
The LFH-2330 is a foot controller with four pedals (see here for example) used to control audio playback software for transcription. It comes with its own driver and software.
The simplest setup for me would be a piece of software that would catch pedal events from the controller and trigger keyboard events instead (right pedal => right arrow, left pedal => left arrow).
This simple setup however needs the viewing application to be in focus in order for it to work.
A better solution would be to be able to control the viewing application from the foot controller without the application being (nor coming) into focus, so that I can type with my hands and paginate with my feet at the same time. (But this can also be achieved with two computers).
What would be the best way to approach this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无论如何,以下可以完成
控制器(通过使用usb-tracer)
USB IRP,并生成这样的 IRP
从您的输入获取命令时,
比如说,键盘
为了完成上述的事情,你应该非常了解WDM模型。 IOCTL等~~~
Anyway the following can be done
controller (by using usb-tracer)
the USB IRP, and generate such IRP
on getting commands from your input,
say, Keyboard
For doing the above things, you should know about WDM model very well. IOCTL etc ~~~