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 » 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: 13976
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: Thu May 09 06:35:45 CEST 2024

Total time taken to generate the page: 0.02389 seconds