Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » How to determine if a key is down or up? (Aside from system keys)
Re: How to determine if a key is down or up? (Aside from system keys) [message #12050 is a reply to message #12047] Tue, 09 October 2007 17:24 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
ulrich wrote on Tue, 09 October 2007 10:13

I need to detect whether a given key is up/down - how can I do this?

I noticed that for system keys like Ctrl/Spacebar/etc a key event gets sent once when it is pressed and a second time OR'd with K_KEYUP, when it is released. However this is not the case for other basic keys (e.g. a-z, etc).

Thanks in advance,
Luke


Actually, it is case for them too. They are comming twice, once as K_A, second time as 'a'. There is then K_KEYUP|K_A (but not K_KEYUP|'a').
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drag & Drop example or documentation?
Next Topic: LOG_DBG does not work correctly [BUG]
Goto Forum:
  


Current Time: Sat May 11 22:27:03 CEST 2024

Total time taken to generate the page: 0.01431 seconds