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

Home » Community » Newbie corner » How to monitor key release event?
Re: How to monitor key release event? [message #44244 is a reply to message #43973] Wed, 11 February 2015 09:30 Go to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
ManfredHerr wrote on Wed, 03 December 2014 16:07
My findings with KEY_UP are that it is NOT platform independent at all. First of all, it depends which key is pressed. The arrow keys are generating press and release events for you. But if you wait for key release events for aplha keys, e.g. 'a', then you wait forever in X11. But if you use GTK then a key release event comes up: KEY_UP + 'A'. Confused This means that the key symbols for press and release differ. I tried it with a "keyhook" in order to be at a lower level. No change.


You should not use ASCII (like 'A' + KEY_UP), but K_A|K_KEYUP.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Assist++ for STL
Next Topic: How does one create core and ctrllib as a dll?
Goto Forum:
  


Current Time: Wed Apr 29 06:49:51 GMT+2 2026

Total time taken to generate the page: 0.00832 seconds