开发者

Mimicking a keyboard from within a program?

开发者 https://www.devze.com 2023-03-02 04:24 出处:网络
I\'m trying to make a \"vision joystick\" using OpenCV. My plan is to have motion-triggered buttons which the computer would recognize as keyboard input instead. So, for example, if the user triggered

I'm trying to make a "vision joystick" using OpenCV. My plan is to have motion-triggered buttons which the computer would recognize as keyboard input instead. So, for example, if the user triggered the space button onscreen, a space might appear in a text editor, or a characte开发者_JAVA技巧r may jump in a game (we're really trying to make this work for emulators). Is there any simple way to trigger these inputs?


I believe the method will be highly platform-dependent. On Windows, for instance, you should use the SendInput function.

0

精彩评论

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

关注公众号