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 #43973 is a reply to message #43052] Wed, 03 December 2014 16:07 Go to previous messageGo to previous message
ManfredHerr is currently offline  ManfredHerr
Messages: 67
Registered: February 2013
Location: Germany
Member
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.

The keyhooks are called in Ctrl::DispatchKey. But this obscure selection of keys, having a release event or not, already takes place in the platform dependent event processing.
I miss a hook to monitor every key on the keyboard with press and release.
 
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 11:05:21 CEST 2024

Total time taken to generate the page: 0.02470 seconds