开发者

How to detect keys into games using c# program?

let me explain well.. I'm trying to write a program that "listen" the keys pressed by keyboard WHILE I'm into a full-screen game..

I've used DirectInput yet, but it seems don't look into it..

E.g i'm pressing spacebar into game and my char jumps, but my program won't listen to my keys.. it won't record ANYTHING. Just waiting for pressing ._.

i'll be happy if someone can help me, maybe giving an hint like HowTo pressing "a" and result like "spacebar" (pressing "a" i want jump xD)

Can some o开发者_开发技巧ne help me? **


If you want to listen to keys sent to a separate application, you can create a keyboard hook.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜