Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
GeneralRe: Exit / Input / XNA [modified] Pin
MasterSharp15-Feb-08 9:09
MasterSharp15-Feb-08 9:09 
GeneralRe: Exit / Input / XNA Pin
User 665815-Feb-08 9:34
User 665815-Feb-08 9:34 
GeneralRe: Exit / Input / XNA Pin
MasterSharp15-Feb-08 9:42
MasterSharp15-Feb-08 9:42 
GeneralRe: Exit / Input / XNA Pin
Dave Kreskowiak15-Feb-08 9:36
mveDave Kreskowiak15-Feb-08 9:36 
GeneralRe: Exit / Input / XNA Pin
MasterSharp15-Feb-08 9:41
MasterSharp15-Feb-08 9:41 
GeneralRe: Exit / Input / XNA Pin
Dave Kreskowiak15-Feb-08 9:50
mveDave Kreskowiak15-Feb-08 9:50 
GeneralRe: Exit / Input / XNA Pin
MasterSharp15-Feb-08 9:55
MasterSharp15-Feb-08 9:55 
GeneralRe: Exit / Input / XNA Pin
MarkB77715-Feb-08 10:08
MarkB77715-Feb-08 10:08 
Pass the game class over to the child class in the constructor and use the game.Exit() method from there.

It's no more complicated than that.


You can use the XNA.Framework.Input.Keyboard.GetState(PlayerIndex playerIndex).IsKeyDown(Keys key) method to check for key presses.

In future, like someone said above, use the XNA creators forums. They are very good, and have the guys who wrote the framework constantly posting.



Mark.
GeneralMore articles in C# than VB.net Pin
Parthasarathy Mandayam15-Feb-08 8:17
Parthasarathy Mandayam15-Feb-08 8:17 
GeneralRe: More articles in C# than VB.net Pin
Dave Kreskowiak15-Feb-08 9:32
mveDave Kreskowiak15-Feb-08 9:32 
GeneralRe: More articles in C# than VB.net Pin
snorkie15-Feb-08 9:49
professionalsnorkie15-Feb-08 9:49 
GeneralRe: More articles in C# than VB.net Pin
Dave Kreskowiak15-Feb-08 9:52
mveDave Kreskowiak15-Feb-08 9:52 
GeneralRe: More articles in C# than VB.net Pin
Paul Conrad15-Feb-08 12:39
professionalPaul Conrad15-Feb-08 12:39 
GeneralRe: More articles in C# than VB.net Pin
Kevin McFarlane15-Feb-08 10:29
Kevin McFarlane15-Feb-08 10:29 
GeneralRe: More articles in C# than VB.net Pin
Christian Graus15-Feb-08 10:38
protectorChristian Graus15-Feb-08 10:38 
GeneralRe: More articles in C# than VB.net Pin
Kevin McFarlane15-Feb-08 10:47
Kevin McFarlane15-Feb-08 10:47 
GeneralRe: More articles in C# than VB.net Pin
Pete O'Hanlon15-Feb-08 11:12
mvePete O'Hanlon15-Feb-08 11:12 
GeneralRe: More articles in C# than VB.net Pin
Eslam Afifi15-Feb-08 22:23
Eslam Afifi15-Feb-08 22:23 
GeneralRe: More articles in C# than VB.net Pin
Ravenet16-Feb-08 2:06
Ravenet16-Feb-08 2:06 
GeneralSystem.StringComparer and IgnoreCase Pin
PIEBALDconsult15-Feb-08 7:43
mvePIEBALDconsult15-Feb-08 7:43 
GeneralRe: System.StringComparer and IgnoreCase Pin
Judah Gabriel Himango15-Feb-08 9:28
sponsorJudah Gabriel Himango15-Feb-08 9:28 
GeneralRe: System.StringComparer and IgnoreCase Pin
Not Active15-Feb-08 11:08
mentorNot Active15-Feb-08 11:08 
GeneralRe: System.StringComparer and IgnoreCase Pin
Daniel Grunwald16-Feb-08 11:15
Daniel Grunwald16-Feb-08 11:15 
GeneralRe: System.StringComparer and IgnoreCase Pin
PIEBALDconsult18-Feb-08 11:27
mvePIEBALDconsult18-Feb-08 11:27 
GeneralProblems sending bulk e-mails using system.net.mail Pin
Fatbuddha215-Feb-08 6:20
Fatbuddha215-Feb-08 6:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.