This project has moved. For the latest updates, please go here.


Keyboard event handling


You can get the arrow keys if you use the KeyUp event instead of the KeyDown event. Also, is there a reason you're using the KeyboardEventArgs.Key instead of KeyboardEventArgs.PlatformKeyCode, which is platform specific?
Closed Jun 8, 2008 at 8:07 AM by markheath


markheath wrote Jun 24, 2007 at 8:06 AM

I used platformkeycode, simply because at the time of developing, I didn't realise what the difference was. I'll make the change. As for the arrow keys on KeyUp, this isn't exactly ideal as some users hold down the direction key of their choice until they want to change direction. However, I could add extra keys for Sammy, so that users who change direction with a quick keypress can use the arrow keys if they wish.

wrote Jun 8, 2008 at 8:07 AM

markheath wrote Jun 8, 2008 at 8:08 AM

keydown now available for cursor keys

wrote Feb 12, 2013 at 10:15 PM

wrote May 15, 2013 at 3:58 AM