简体   繁体   English

没有获得Windows Phone模拟器键盘的输入

[英]Doesn't get Windows Phone emulator keypad for input

I am developing game for windows phone. 我正在开发Windows Phone游戏。 I select project Windows Phone Game(4.0). 我选择项目Windows Phone Game(4.0)。 Write some code for moving object on windows phone emulator but I didn't get keypad for giving input to that object. 在Windows Phone模拟器上编写一些用于移动对象的代码,但是我没有为该对象提供输入的键盘。 I also import following files. 我还导入以下文件。

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;

Why I didn't get keypad on Windows phone Emulator? 为什么我在Windows Phone Emulator上没有键盘?

You can try this one, it should work in XNA, Silverlight and Silverlight/XNA 您可以尝试一下,它应该可以在XNA,Silverlight和Silverlight / XNA中工作

http://luisguerrero.net/en/2010/07/17/how-to-access-to-keyboard-in-xna-from-windows-phone-7/ http://luisguerrero.net/zh/2010/07/17/how-to-access-to-keyboard-in-xna-from-windows-phone-7/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM