如何在Silverlight游戏中使用事件键盘 [英] How to use event keyboard in a silverlight game

查看:78
本文介绍了如何在Silverlight游戏中使用事件键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Silverlight中使用键盘开发游戏.

游戏是:球会飞,球上会有字母,打字字母会用来使球爆炸.

我不知道该怎么做.有人可以帮我吗?

I want to develop a game using keyboard in Silverlight.

The game is: Ball will fly, on the ball letters are there and typing letters will be used to make balls explode.

I have no idea of how to do it. Can anyone help me with it?

推荐答案

Silverlight中的任何UIElement 支持KeyUp KeyDown -请参见
Any UIElement in Silverlight supports KeyUp and KeyDown - see here[^].


这篇关于如何在Silverlight游戏中使用事件键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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