U++ framework
Do not panic. Ask here before giving up.

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: 14290
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: Wed Apr 29 10:44:07 GMT+2 2026

Total time taken to generate the page: 0.02586 seconds