G
Guest
Hi
I'm writing a small Pocket PC game in C# using the .NET Compact Framework. I'm overriding the OnKeyDown and OnKeyUp methods to handle game input. The problem is that the OnKeyDown mehtod isn't executed untill i release the arrow key. That way i cant make my space ship move left/right/up/down when you're pressing (and holding) down one of the arrow keys.
Some example code of a moving sprite/object whould be greatly appreciated!
I'm writing a small Pocket PC game in C# using the .NET Compact Framework. I'm overriding the OnKeyDown and OnKeyUp methods to handle game input. The problem is that the OnKeyDown mehtod isn't executed untill i release the arrow key. That way i cant make my space ship move left/right/up/down when you're pressing (and holding) down one of the arrow keys.
Some example code of a moving sprite/object whould be greatly appreciated!