简体   繁体   中英

Doesn't get Windows Phone emulator keypad for input

I am developing game for windows phone. I select project 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. 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?

You can try this one, it should work in XNA, Silverlight and Silverlight/XNA

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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