View Single Post
Old 30-03-2011, 07:21 PM   #8
Japo
Autonomous human
 
Japo's Avatar


 
Join Date: Mar 2006
Location: ,
Posts: 4,613
Default

Just for the record, today I remembered this thread and I thought that XNA (MS's .NET library for games programming) would have better types for input than Windows Forms. (Too bad Windows Forms and both WinAPI functions decide not to tell some equivalent keys apart, otherwise they could do the job.) I haven't tried XNA yet but here are some links on the topic, in case you want to explore:

http://msdn.microsoft.com/en-us/library/bb203899.aspx

http://msdn.microsoft.com/en-us/library/bb203902.aspx

http://msdn.microsoft.com/en-us/libr...ork.input.aspx

Also it occurred to me that keyboard input may not be so simple as I was thinking initially, in a multi-tasking OS like Windows. Applications don't get input directly, it's the OS that decides to send it in a message to the one application that has focus. Also searching the MSDN forums I found a lot of threads about installing global hooks with the WinAPI to monitor input, but I wonder when such a crude bypass is recommended or actually used.
__________________
Life starts every day anew. Prospects not so good...

Last edited by Japo; 30-03-2011 at 07:26 PM.
Japo is offline                         Send a private message to Japo
Reply With Quote