有人做一个动作 - 键盘映射程序?所以每场比赛都可以用kinect进行 [英] Someone make a movement--keyboard mapping program? so every game can be played with kinect

查看:98
本文介绍了有人做一个动作 - 键盘映射程序?所以每场比赛都可以用kinect进行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的意思是使移动输入与键盘(或鼠标)输出相关。

i mean make the movement input related to the keyboard(or mouse) output.

例如,以脚移动运行导致键盘"W"输出。输出(大多数游戏使用"W"按钮使角色向前移动。),以便我们运行使角色运行,并且用右臂移动斜线导致"单击鼠标左键"。
输出(大多数游戏都使用鼠标左键来控制角色攻击),这样我们就可以用右手武器直接用右手武器攻击敌人。等等....

for example,running at feet movement result in the keyboard "W" output (most of the games using "W" button to make character moving forward.),so that we run make the character run,and slash with right arm movement result in the "click left mouse button" output(most of the games using left mouse button to control the character attacking),so that we slash right arm the character attack enemy with right hand weapon.etc....etc....

如果我们这样做,我们已经可以用kinect方式玩大部分游戏。这将是很棒的。

if we did this ,we already can play most of the games in kinect way.that will be great.

我认为这将是简单而且非常有用。

i think it will be simple and very useful.

推荐答案

您需要弄清楚手臂的x,y值,然后按下键盘按钮  ;必要时使用sendinput。尝试使用kinect鼠标作为帮助,除了查找键盘样本并更改kinect鼠标以使用键盘。 将右键单击的
x,y 值更改为kinect鼠标代码中的特定键作为测试,直到你做对了。

You need to figure out your x,y values for arm and then press that keyboard button atuomatically using sendinput as necessary. Try out kinect mouse as a help except look up keyboard samples and change kinect mouse to use the keyboard.  Change the x,y values for right click to be a specific key as a test in the kinect mouse code until you get it right.

kinect鼠标链接:

kinect mouse link:

http://kinectmouse.codeplex.com


这篇关于有人做一个动作 - 键盘映射程序?所以每场比赛都可以用kinect进行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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